ref: a0505dd2291ec618d73a5881f9268309ec3b334a
parent: 174e8e8f1377440cfbceca9331c7f6fb85718024
parent: ee3113147b03ae312f3899e78865fb98116d73ab
author: Simon Howard <fraggle@soulsphere.org>
date: Tue May 4 08:12:56 EDT 2021
Merge pull request #1374 from mfrancis95/ghactions Onboard GitHub Actions
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -1,0 +1,35 @@
+name: Chocolate Doom
+
+on:
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+jobs:
+ build:
+ runs-on: ubuntu-18.04
+
+ strategy:
+ matrix:
+ 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
+
+ - uses: actions/checkout@v2
+ with:
+ submodules: true
+
+ - name: Run cppcheck
+ env:
+ ANALYZE: true
+ CC: ${{ matrix.compiler }}
+ run: $GITHUB_WORKSPACE/.travis.sh
+
+ - name: Make
+ env:
+ CC: ${{ matrix.compiler }}
+ run: $GITHUB_WORKSPACE/.travis.sh
\ No newline at end of file