Skip to content

Commit

Permalink
Store build results as both cache and artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
me-and committed Jan 9, 2023
1 parent 2c2fe05 commit 15ef587
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,15 @@ jobs:
path: build-results.tar
if-no-files-found: error
timeout-minutes: 5

# Artifacts are great for letting me download the files, and passing
# files between jobs in the same action, but not for passing files
# between actions. Cache the build results so they can be used by a
# separate release action.
- name: Cache build results
if: startsWith(github.ref, 'refs/heads/')
uses: actions/cache/save@v3
with:
key: libinih-build-${{ github.ref_name }}-${{ github.sha }}
path: build-results.tar
timeout-minutes: 5

0 comments on commit 15ef587

Please sign in to comment.