Skip to content

Commit

Permalink
Update CI caching
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Dec 20, 2024
1 parent c88df7b commit 5cd0c35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,24 @@ runs:
name: Install brew packages
shell: bash
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install curl git git-lfs zip entr openssl double-conversion pkg-config ninja python cmake gnupg zlib doctest boost libzip lbzip2
- name: Cache Clang/LLVM
uses: actions/cache@v3
- name: Restore cached Clang/LLVM
id: restore-clang-cache
uses: actions/cache/restore@v4
with:
path: |
${{ github.workspace }}/build
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('compiler+runtime/bin/build-clang') }}
key: ${{ runner.os }}-${{ hashFiles('compiler+runtime/bin/build-clang') }}
- name: Compile and test
shell: bash
working-directory: ${{ github.workspace }}/compiler+runtime
run: ${{ github.workspace }}/compiler+runtime/bin/ci/test -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
- name: Store cached Clang/LLVM
id: save-clang-cache
uses: actions/cache/save@v4
with:
path: |
${{ github.workspace }}/build
key: ${{ steps.restore-clang-cache.outputs.cache-primary-key }}
# We need to validate formatting after building, since we build Clang/LLVM as part of our
# build process and we need clang-format from that local Clang build in order to have
# consistent formatting results.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
ANALYSIS: ${{ matrix.analysis }}
timeout-minutes: 240 # 4h
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build and test
Expand Down

0 comments on commit 5cd0c35

Please sign in to comment.