ref: 19dc1d18ed4e08b16a314180273c33c105327cbe
parent: a0505dd2291ec618d73a5881f9268309ec3b334a
author: mfrancis95 <[email protected]>
date: Sat May 8 09:55:50 EDT 2021
GitHub Actions: Move cppcheck into its own job
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -15,21 +15,30 @@
compiler: [clang, gcc]
steps:
- - uses: mstksg/get-package@v1
- with:
- apt-get: cppcheck libpng-dev libsdl2-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-image-dev libsamplerate0-dev
+ - name: Install dependencies
+ run: sudo apt-get update && sudo apt-get install libpng-dev libsamplerate0-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev
- uses: actions/checkout@v2
with:
submodules: true
- - name: Run cppcheck
+ - name: Make
env:
- ANALYZE: true
CC: ${{ matrix.compiler }}
run: $GITHUB_WORKSPACE/.travis.sh
- - name: Make
+ cppcheck:
+ runs-on: ubuntu-18.04
+
+ steps:
+ - name: Install dependencies
+ run: sudo apt-get update && sudo apt-get install cppcheck
+
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Run cppcheck
env:
- CC: ${{ matrix.compiler }}
+ ANALYZE: true
run: $GITHUB_WORKSPACE/.travis.sh
\ No newline at end of file