Skip to content

Commit

Permalink
build: Ignore version field in Cargo.toml when CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Aug 26, 2024
1 parent e52a258 commit 4816b15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Generate Cargo.toml.cache (Ignore version=)
run: |
sed '/^version = /d' Cargo.toml > Cargo.toml.cache
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git
target
key: musl-cargo-${{ hashFiles('**/Cargo.toml') }}
key: musl-cargo-${{ hashFiles('**/Cargo.toml.cache') }}
- name: Run fileserver
run: |
fixtures/start_fileserver.sh &
Expand Down

0 comments on commit 4816b15

Please sign in to comment.