Skip to content

Commit

Permalink
Using github actions to rewrite: LinuxCIDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Sep 19, 2023
1 parent 4dbe2a8 commit 3953643
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 27 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: develop

on:
pull_request:
push:

jobs:

linux-x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --all-features
command: check advisories licenses sources bans
18 changes: 0 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
9 changes: 0 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3953643

Please sign in to comment.