Skip to content

Commit

Permalink
Enable cache stash/restore in github action builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroerp committed Apr 26, 2024
1 parent 394d51c commit 782409d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ concurrency:
cancel-in-progress: true

jobs:
ubuntu-debug:
ubuntu-release:
runs-on: ubuntu-latest
if: ${{ github.repository == 'facebookexternal/nimble' }}
name: "Ubuntu Build"
Expand All @@ -40,6 +40,12 @@ jobs:
shell: bash
working-directory: nimble
steps:
- name: "Restore Build Cache"
uses: assignUser/stash/restore@v1
with:
path: '${{ env.CCACHE_DIR }}'
key: ccache-ubuntu-release-default

- name: "Checkout"
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -77,3 +83,9 @@ jobs:
run: |
# Print and zero cache stats.
ccache -szv
- name: "Stash Build Cache"
uses: assignUser/stash/save@v1
with:
path: '${{ env.CCACHE_DIR }}'
key: ccache-ubuntu-release-default

0 comments on commit 782409d

Please sign in to comment.