Skip to content

Commit

Permalink
Make clang-tidy cache work with CI (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickKa authored Nov 15, 2023
2 parents d245497 + 625e60b commit c40fdd1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,17 @@ jobs:
container: tuwienspaceteam/sts1-cobc:latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/cache/restore@v3
id: restorecache
with:
path: /.cache/clang-tidy
key: ctcache

- name: Echo cache miss
if: steps.restorecache.outputs.cache-hit != 'true'
run: echo "Cache miss"

- name: Configure
run: cmake --preset=ci-cobc
Expand All @@ -110,6 +120,12 @@ jobs:
- name: Build tests
run: cmake --build build/cobc -t AllTests -j 2

- uses: actions/cache/save@v3
id: savecache
with:
path: /.cache/clang-tidy
key: ctcache

- name: Upload artifacts
if: github.event_name == 'push' || github.event_name == 'pull_request'
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit c40fdd1

Please sign in to comment.