Skip to content

Commit

Permalink
update caching
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed Aug 8, 2023
1 parent a6bf125 commit ed27fe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- name: Restore cache
uses: actions/cache@v3
id: cache
with:
key: ${{ env.UBUNTU_CODENAME }}-apt-${{ env.LLVM_VERSION }}
path: |
Expand All @@ -39,23 +40,22 @@ jobs:
!/var/lib/apt/lists/lock
- name: Add LLVM repo
if: steps.cache.outputs.cache-hit != 'true'
run: |
if [[ ! -f /etc/apt/trusted.gpg.d/apt.llvm.org.asc ]]; then
# download GPG key once
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
fi
source /etc/os-release
echo "deb http://apt.llvm.org/${{ env.UBUNTU_CODENAME }}/ llvm-toolchain-${{ env.UBUNTU_CODENAME }}-${{ env.LLVM_VERSION}} main" | sudo tee /etc/apt/sources.list.d/llvm.list
sudo apt-get update
sudo apt-get install clang-format-${{ env.LLVM_VERSION}} clang-tidy-${{ env.LLVM_VERSION }}
- uses: cpp-linter/cpp-linter-action@v2
id: linter
with:
style: file
extensions: 'c,h,m,C,H,cpp,mm,hpp,cc,hh,c++,h++,cxx,hxx'
tidy-checks: '-*'
version: '16'
version: ${{ env.LLVM_VERSION }}
files-changed-only: ${{ github.event_name == 'pull_request' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ed27fe9

Please sign in to comment.