Skip to content

Commit

Permalink
Merge pull request #38 from jeremydk/main
Browse files Browse the repository at this point in the history
Fix macos cache key collision.
  • Loading branch information
progre authored Aug 7, 2024
2 parents 5a4e8e1 + e96469b commit 0c2b8f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ jobs:
include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
cache_key: 'aarch64'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
cache_key: 'x86_84'
- platform: 'ubuntu-22.04'
args: ''
cache_key: ''
- platform: 'windows-latest'
args: ''
cache_key: ''

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -33,7 +37,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
src-tauri/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-${{ matrix.cache_key }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: setup node
uses: actions/setup-node@v4
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
include:
- platform: 'ubuntu-22.04'
args: ''
cache_key: ''

runs-on: ${{ matrix.platform }}
steps:
Expand All @@ -26,7 +27,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
src-tauri/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-${{ matrix.cache_key }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: setup node
uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 0c2b8f2

Please sign in to comment.