Skip to content

Commit

Permalink
Combine build cache steps into one.
Browse files Browse the repository at this point in the history
  • Loading branch information
jshbrntt committed Aug 8, 2023
1 parent 4d59417 commit aceb65b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,15 @@ jobs:
.
!.git
key: source-${{ needs.release.outputs.commit_sha }}
- name: Restore build cache
uses: actions/cache/restore@v3
- name: Build cache
uses: actions/cache@v3
with:
path: build/${{ matrix.target }}
key: build-${{ matrix.target }}
- name: Build ${{ matrix.target }} release target
- name: Build ${{ matrix.target }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: make build-${{ matrix.target }}
- name: Save build cache
uses: actions/cache/save@v3
with:
path: build/${{ matrix.target }}
key: build-${{ matrix.target }}
- name: Find artifacts
run: |
echo "archive_asset_path=$(find target/release -name *.zip -o -name *.tar.gz)" >> "$GITHUB_ENV"
Expand Down

0 comments on commit aceb65b

Please sign in to comment.