From 21f2693e8405c0e7105d7eae3cfc5bd81e34fee7 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 28 Apr 2024 07:54:39 -0400 Subject: [PATCH] Don't try to re-install Cargo dependencies on cache hit --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8822740..6555f24 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,6 +24,7 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 + id: cache-deps with: path: | ~/.cargo/bin/ @@ -37,6 +38,11 @@ jobs: sudo apt-get update sudo apt-get install \ libunshield-dev \ + - name: Install Cargo dependencies + if: steps.cache-deps.outputs.cache-hit != 'true' + run: | + cargo install --locked cargo-deny + cargo install --locked cargo-semver-checks - name: Build run: cargo build --features visual_data,game_install --verbose - name: Run tests @@ -45,9 +51,7 @@ jobs: run: cargo clippy --features visual_data,game_install - name: Run deny-check run: | - cargo install --locked cargo-deny cargo deny check - name: Run semver-checks run: | - cargo install --locked cargo-semver-checks cargo semver-checks check-release