mirror of
https://github.com/redstrate/Physis.git
synced 2025-04-20 11:47:46 +00:00
Don't try to re-install Cargo dependencies on cache hit
This commit is contained in:
parent
ccf28b3f4c
commit
21f2693e84
1 changed files with 6 additions and 2 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -24,6 +24,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
|
id: cache-deps
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
|
@ -37,6 +38,11 @@ jobs:
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install \
|
sudo apt-get install \
|
||||||
libunshield-dev \
|
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
|
- name: Build
|
||||||
run: cargo build --features visual_data,game_install --verbose
|
run: cargo build --features visual_data,game_install --verbose
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
@ -45,9 +51,7 @@ jobs:
|
||||||
run: cargo clippy --features visual_data,game_install
|
run: cargo clippy --features visual_data,game_install
|
||||||
- name: Run deny-check
|
- name: Run deny-check
|
||||||
run: |
|
run: |
|
||||||
cargo install --locked cargo-deny
|
|
||||||
cargo deny check
|
cargo deny check
|
||||||
- name: Run semver-checks
|
- name: Run semver-checks
|
||||||
run: |
|
run: |
|
||||||
cargo install --locked cargo-semver-checks
|
|
||||||
cargo semver-checks check-release
|
cargo semver-checks check-release
|
||||||
|
|
Loading…
Add table
Reference in a new issue