shithub: choc

Download patch

ref: c3e9173772e07ee21f3cea39fd6e3935ed95a02c
parent: a0505dd2291ec618d73a5881f9268309ec3b334a
parent: 19dc1d18ed4e08b16a314180273c33c105327cbe
author: Michael Francis <mikefrancis95@gmail.com>
date: Sun May 23 14:49:59 EDT 2021

Merge pull request #1377 from mfrancis95/ghactionscppcheck

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