Skip to content

Commit

Permalink
ci(nix): add rust audit capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
realeinherjar committed Oct 19, 2023
1 parent 4d4d171 commit d716439
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 23 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/audit.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ jobs:
run: nix build -L .#ci.fmt --keep-failed
- name: Clippy
run: nix build -L .#ci.clippy --keep-failed
- name: Test '--all-features' latest Rust
# Audit
- name: Audit
run: nix build -L .#ci.audit --keep-failed
# Tests: latest
- name: Test workspace all-features latest
run: nix build -L .#ci.latest.all --keep-failed
- name: Test '--no-default-features' latest Rust
run: nix build -L .#ci.latest.noDefault --keep-failed
Expand Down
9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@
# cargoCheckExtraArgs = "-p bdk_esplora --no-default-features --features bitcoin/no-std,miniscript/no-std,bdk_chain/hashbrown,async";
# });
# Audit dependencies
# audit = craneLib.cargoAudit (commonArgs // {
# inherit advisory-db;
# });
audit = craneLib.cargoAudit (commonArgs // {
inherit advisory-db;
});
};

packages = {
Expand All @@ -247,6 +247,7 @@
ci = {
clippy = checks.clippy;
fmt = checks.fmt;
audit = checks.audit;
latest = {
all = checks.latestAll;
noDefault = checks.latestNoDefault;
Expand Down Expand Up @@ -295,6 +296,7 @@
checks = {
clippy = checks.clippy;
fmt = checks.fmt;
audit = checks.audit;
default = checks.MSRV;
all = checks.MSRVAll;
noDefault = checks.MSRVNoDefault;
Expand All @@ -318,6 +320,7 @@
checks = {
clippy = checks.clippy;
fmt = checks.fmt;
audit = checks.audit;
default = checks.MSRV;
all = checks.MSRVAll;
noDefault = checks.MSRVNoDefault;
Expand Down

0 comments on commit d716439

Please sign in to comment.