From 0dbdbd2d490c3d1361b424399b11869ac20fc5ed Mon Sep 17 00:00:00 2001 From: asonix Date: Fri, 21 Jun 2024 14:27:11 -0500 Subject: [PATCH] Add cargo-deny run --- .forgejo/workflows/check.yaml | 22 +++++++++++++++++++--- .forgejo/workflows/publish.yaml | 28 ++++++++++++++++++++++------ 2 files changed, 41 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/check.yaml b/.forgejo/workflows/check.yaml index 7ae6b7d..d81ea4a 100644 --- a/.forgejo/workflows/check.yaml +++ b/.forgejo/workflows/check.yaml @@ -10,7 +10,7 @@ jobs: clippy: runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs @@ -24,10 +24,26 @@ jobs: cargo clippy --no-default-features -- -D warnings cargo clippy --no-default-features --features io-uring -- -D warnings + deny: + runs-on: docker + container: + image: docker.io/asonix/actions-base-image:0.1.21 + steps: + - + name: Checkout pict-rs + uses: https://github.com/actions/checkout@v4 + - + name: Cargo Cache + uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main + - + name: Clippy + run: | + cargo deny check + tests: runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs @@ -49,7 +65,7 @@ jobs: - aarch64-unknown-linux-musl runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 997dbae..a11143e 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -10,7 +10,7 @@ jobs: clippy: runs-on: base-image container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs @@ -24,10 +24,26 @@ jobs: cargo clippy --no-default-features -- -D warnings cargo clippy --no-default-features --features io-uring -- -D warnings + deny: + runs-on: docker + container: + image: docker.io/asonix/actions-base-image:0.1.21 + steps: + - + name: Checkout pict-rs + uses: https://github.com/actions/checkout@v4 + - + name: Cargo Cache + uses: https://git.asonix.dog/asonix/actions/cache-rust-dependencies@main + - + name: Clippy + run: | + cargo deny check + tests: runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs @@ -45,7 +61,7 @@ jobs: - tests runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 strategy: fail-fast: false matrix: @@ -145,7 +161,7 @@ jobs: publish-docker: runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 needs: [build] steps: - @@ -196,7 +212,7 @@ jobs: needs: [build] runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - uses: https://github.com/actions/download-artifact@v3 with: @@ -213,7 +229,7 @@ jobs: needs: [build] runs-on: docker container: - image: docker.io/asonix/actions-base-image:0.1 + image: docker.io/asonix/actions-base-image:0.1.21 steps: - name: Checkout pict-rs