foxygit / doom Log in
commit 19dc1d18ed4e08b16a314180273c33c105327cbe
Author:     mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Sat May 8 13:55:50 2021 -0400
Commit:     mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Mon May 10 13:09:23 2021 -0400

    GitHub Actions: Move cppcheck into its own job
---
 .github/workflows/main.yml | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 47bb0ab4..fe4d3848 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -15,21 +15,30 @@ jobs:
         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