shithub: choc

Download patch

ref: aa8172e9002ff31a8a2f8daa74fbd9f49c44b3b6
parent: 00480e248644aaefea6aa66658c7dea6ae637a83
parent: 0bf70e16ef522e27a919f19b89abfa22d56d691c
author: Fabian Greffrath <[email protected]>
date: Sat Nov 27 20:49:41 EST 2021

Merge pull request #1406 from bensuperpc/update_ci

Update github CI

--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -2,26 +2,37 @@
 
 on:
   push:
-    branches: [ master ]
+    branches:
+      - "master"
+    paths-ignore:
+      - "**.md"
   pull_request:
-    branches: [ master ]
+    branches:
+      - "master"
+  workflow_dispatch:
 
 jobs:
   build:
-    runs-on: ubuntu-18.04
+    runs-on: ${{ matrix.os }}
 
     strategy:
       matrix:
         compiler: [clang, gcc]
+        os: [ubuntu-latest]
 
     steps:
       - 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
+        run: sudo apt-get update && sudo apt-get install libpng-dev libsamplerate0-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev ninja-build
 
       - uses: actions/checkout@v2
         with:
           submodules: true
 
+      - name: CMake
+        env:
+          CC: ${{ matrix.compiler }}
+        run: cmake -S . -B build -G Ninja && ninja -C build
+
       - name: Make
         env:
           CC: ${{ matrix.compiler }}
@@ -41,4 +52,4 @@
       - name: Run cppcheck
         env:
           ANALYZE: true
-        run: $GITHUB_WORKSPACE/.travis.sh
\ No newline at end of file
+        run: $GITHUB_WORKSPACE/.travis.sh