Skip to content

Commit

Permalink
Merge pull request #52 from silicon-heaven/ci-refactor-ctache
Browse files Browse the repository at this point in the history
Ci refactor ctache
  • Loading branch information
fvacek authored Apr 29, 2024
2 parents a360667 + 5c17d94 commit 63484b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
18 changes: 1 addition & 17 deletions .github/actions/run-linter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,7 @@ runs:
os: ubuntu-latest

- name: Install ctcache
run: |
CTCACHE_REF=e70da77cb867d74ccadce3f3c5862fc9cf4d22a7
curl --location "https://github.com/matus-chochlik/ctcache/archive/${CTCACHE_REF}.tar.gz" | tar --extract --to-stdout --gzip --file - "ctcache-${CTCACHE_REF}/clang-tidy-cache" | sudo tee /usr/bin/clang-tidy-cache > /dev/null
sudo chmod +x /usr/bin/clang-tidy-cache
echo CTCACHE_DIR='${{github.workspace}}/.ctcache' >> "$GITHUB_ENV"
shell: bash

- name: Generate timestamp
run: echo "NOW=$(date -u +"%Y-%m-%dT%H:%M:%S.%3NZ")" >> $GITHUB_ENV
shell: bash

- name: Setup clang-tidy cache
uses: actions/cache@v4
with:
key: ctcache-${{ github.job }}-${{ env.NOW }}
path: ${{github.workspace}}/.ctcache
restore-keys: ctcache-${{ github.job }}-
uses: syyyr/[email protected]

- name: Build autogenerated stuff
shell: bash
Expand Down

0 comments on commit 63484b6

Please sign in to comment.