From 07b9e826b33a57a95e06a1d011f3e90b957ffaa8 Mon Sep 17 00:00:00 2001 From: Nico Wagner Date: Mon, 1 Apr 2024 08:20:58 +0200 Subject: [PATCH] udeps Signed-off-by: Nico Wagner --- .github/workflows/ci.yml | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 991166dc5..b157300ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,7 @@ jobs: - fmt # - fuzz - test + - udeps steps: - run: exit 0 @@ -146,28 +147,15 @@ jobs: - run: ci/prepare-tests.sh - run: make careful -# # udeps: -# # if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }} -# # runs-on: ubuntu-latest -# # needs: test -# # steps: -# # - uses: actions/checkout@v4 -# # - uses: abbbi/github-actions-tune@v1 -# # - uses: actions/cache@v4 -# # with: -# # key: ${{ env.CACHE_KEY }}-${{ hashFiles('**/Cargo.toml') }} -# # path: | -# # ~/.cargo/bin/ -# # ~/.cargo/git/db/ -# # ~/.cargo/registry/cache/ -# # ~/.cargo/registry/index/ -# # target/ -# # - uses: dtolnay/rust-toolchain@nightly -# # - name: "Install `cargo-udeps`" -# # run: | -# # cargo install -f cargo-udeps -# # - run: | -# # cargo udeps --workspace + udeps: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - uses: Swatinem/rust-cache@v2 + - run: cargo install cargo-udeps + - run: cargo udeps --workspace # audit: # if: ${{ github.ref == 'refs/heads/main' }}