diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml new file mode 100644 index 00000000..b3c376fd --- /dev/null +++ b/.github/workflows/develop.yml @@ -0,0 +1,16 @@ +name: develop + +on: + pull_request: + push: + +jobs: + + linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: EmbarkStudios/cargo-deny-action@v1 + with: + arguments: --all-features + command: advisories licenses sources bans diff --git a/Makefile b/Makefile index ae888cf0..36ad8fad 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,6 @@ fuzz: ci: fmt check clippy test git diff --exit-code Cargo.lock -ci-deps: security-audit check-licenses check-crates - git diff --exit-code Cargo.lock - ci-asm: test-asm git diff --exit-code Cargo.lock @@ -52,21 +49,6 @@ ci-asm-chaos: test-asm-chaos ci-generated: update-cdefinitions git diff --exit-code src/machine/asm/cdefinitions_generated.h -# Use cargo-deny to audit Cargo.lock for crates with security vulnerabilities -security-audit: - @cargo deny --version || cargo install cargo-deny - @cargo deny check --hide-inclusion-graph --show-stats advisories sources - -# Use cargo-deny to check licenses for all dependencies. -check-licenses: - @cargo deny --version || cargo install cargo-deny - @cargo deny check --hide-inclusion-graph --show-stats licenses - -# Use cargo-deny to check specific crates, detect and handle multiple versions of the same crate and wildcards version requirement. -check-crates: - @cargo deny --version || cargo install cargo-deny - @cargo deny check --hide-inclusion-graph --show-stats bans - update-cdefinitions: cargo run --manifest-path=definitions/Cargo.toml --bin generate_asm_constants > src/machine/asm/cdefinitions_generated.h diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 65e2cca9..d9667b5b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,15 +10,6 @@ variables: TEST_SUITE_COMMIT: 86480364649c9cb6ac01674fe51156e7cf50a31a jobs: - - job: LinuxCIDeps - pool: - vmImage: 'ubuntu-20.04' - steps: - - template: devtools/azure/linux-dependencies.yml - - script: cargo install cargo-deny --locked --version 0.12.1 - displayName: Install cargo deny - - script: make ci-deps - displayName: Run ci-deps - job: LinuxCIGenerated pool: