Skip to content

Commit

Permalink
Cache the built package
Browse files Browse the repository at this point in the history
  • Loading branch information
rootmos committed Mar 1, 2024
1 parent 101fdd2 commit f7df535
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,20 @@ jobs:
if: steps.nodejs_shared_cache.outputs.cache-hit != 'true'
run: sudo -u $UNPRIVILEGED build/archlinux/nodejs-shared/build

- name: Cache nodejs-shared package
if: steps.nodejs_shared_cache.outputs.cache-hit != 'true'
uses: actions/cache/restore@v4
with:
path: build/archlinux/nodejs-shared/${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}
key: ${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}

- name: Restore nodejs-shared package
id: nodejs_shared_cache
uses: actions/cache/restore@v4
with:
path: build/archlinux/nodejs-shared/${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}
key: ${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}

- name: Install nodejs-shared
run: pacman -U --noconfirm build/archlinux/nodejs-shared/${{ steps.nodejs_shared_pkgbuild.outputs.pkg }}

Expand Down

0 comments on commit f7df535

Please sign in to comment.