Skip to content

Commit

Permalink
adds cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Eein committed Apr 9, 2023
1 parent a4db29e commit 1cb2595
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
release:
name: Release
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
include:
Expand Down Expand Up @@ -39,6 +41,15 @@ jobs:
- name: Install Target
run: rustup target add ${{ matrix.target }}

- name: Retrieve Mix Dependencies Cache
uses: actions/[email protected]
id: ${{ mix.target }}-cache
with:
path: target
key: ${{ matrix.build }}-${{ matrix.target }}-${{ matrix.os}}-cache-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ matrix.build }}-${{ matrix.target }}-${{ matrix.os}}-cache-
- name: Build
run: cargo build --target ${{ matrix.target }} --release
env:
Expand All @@ -53,4 +64,4 @@ jobs:
tag_name: release-${{ github.sha }}
release_name: Release ${{ github.sha }}
files: |
./target/${{ matrix.target }}/release/octopath-2-practice*
./target/${{ matrix.target }}/release/octopath-2-practice-${{ matrix.target }}.*

0 comments on commit 1cb2595

Please sign in to comment.