Skip to content

Commit aae31da

Browse files
koumeta-codesync[bot]
authored andcommitted
Make ccache in CI workable (facebookincubator#277)
Summary: If we use a directory that starts with `.` like `.ccache`, the directory isn't cached. Because `assignUser/stash/save` and its successor `apache/infrastructure-actions/stash/save` uses actions/upload-artifacts. actions/upload-artifacts ignores paths that start with `.`: https://github.com/actions/upload-artifact?tab=readme-ov-file#uploading-hidden-files We can use `ccache` not `.cache` to cache ccache data. This also changes cache action to `apache/infrastructure-actions/stash` from `assignUser/stash` because `apache/infrastructure-actions/stash` is the successor of `assignUser/stash`. Pull Request resolved: facebookincubator#277 Reviewed By: sdruzkin Differential Revision: D84596448 Pulled By: HuamengJiang fbshipit-source-id: 500840620201fbc5aa17099ead71946b43488799
1 parent 0d5c0c4 commit aae31da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/linux-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ jobs:
3030
runs-on: ubuntu-22.04
3131
name: "Ubuntu Build"
3232
env:
33-
CCACHE_DIR: "${{ github.workspace }}/.ccache"
33+
CCACHE_DIR: "${{ github.workspace }}/ccache"
3434
defaults:
3535
run:
3636
shell: bash
3737
working-directory: nimble
3838
steps:
3939
- name: "Restore Build Cache"
40-
uses: assignUser/stash/restore@v1
40+
uses: apache/infrastructure-actions/stash/restore@0731ee889b6301db2001a2a307b4fe4e4f8d3dc8
4141
with:
4242
path: '${{ env.CCACHE_DIR }}'
4343
key: ccache-ubuntu-release-default
@@ -81,7 +81,7 @@ jobs:
8181
ccache -szv
8282
8383
- name: "Stash Build Cache"
84-
uses: assignUser/stash/save@v1
84+
uses: apache/infrastructure-actions/stash/save@0731ee889b6301db2001a2a307b4fe4e4f8d3dc8
8585
with:
8686
path: '${{ env.CCACHE_DIR }}'
8787
key: ccache-ubuntu-release-default

0 commit comments

Comments
 (0)