Skip to content

Commit

Permalink
use the matrix.os for the keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyz committed Mar 23, 2024
1 parent 683622a commit 111a4a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
~/.cargo/registry
~/.cargo/git
target/release
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
key: ${{ matrix.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-release-
${{ matrix.os }}-cargo-release-
- name: Build for release
run: cargo build --verbose --release --target-dir target
- name: Upload Build Artifact
Expand Down Expand Up @@ -96,6 +96,10 @@ jobs:
run: zip -jr target/macos.zip target/macos/
- name: Create ZIP archive (Windows)
run: zip -jr target/windows.zip target/windows/
- name: Create ZIP archive (macOS-14-ARM64)
run: zip -jr target/macos-arm64.zip target/macos-arm64/
- name: Create ZIP archive (macOS-13)
run: zip -jr target/macos-13.zip target/macos-13/
- name: Create Release
uses: softprops/action-gh-release@v1
env:
Expand Down

0 comments on commit 111a4a0

Please sign in to comment.