Skip to content

Commit

Permalink
workflow changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prak132 committed Oct 3, 2024
1 parent 6c54c93 commit af989fa
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/verify_code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ jobs:
with:
path: |
/usr/local/bin/cppcheck
/usr/local/bin/cfg
/usr/local/lib/libpcre.so*
key: ${{ runner.os }}-build-${{ hashFiles('cache-directory-2.txt') }}
restore-keys: |
${{ runner.os }}-build-
- name: Update package index
if: steps.cache-deps.outputs.cache-hit != 'true'
run: sudo apt-get update

- name: Install dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
run: sudo apt-get install -y wget build-essential
Expand All @@ -47,10 +52,7 @@ jobs:
./configure
make
sudo make install
- name: Set Library Path
run: echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/local.conf && sudo ldconfig

- name: Download and Install CppCheck
if: steps.cache-deps.outputs.cache-hit != 'true'
run: |
Expand All @@ -60,9 +62,12 @@ jobs:
make MATCHCOMPILER=yes HAVE_RULES=yes CFGDIR=cfg
sudo cp cppcheck /usr/local/bin/
sudo cp -r cfg /usr/local/bin/cfg
- name: Set Library Path
run: echo "/usr/local/lib" | sudo tee -a /etc/ld.so.conf.d/local.conf && sudo ldconfig

- name: Install clang-format
run: sudo apt install clang-format
run: sudo apt-get update && sudo apt-get install -y clang-format

- name: Grant execute permission for gradlew
run: chmod +x gradlew
Expand Down Expand Up @@ -91,4 +96,4 @@ jobs:
run: ./gradlew installRoborioToolchain

# - name: Spotless Check
# run: ./gradlew spotlessCheck -PfromCI
# run: ./gradlew spotlessCheck -PfromCI

0 comments on commit af989fa

Please sign in to comment.