ref: ee3113147b03ae312f3899e78865fb98116d73ab
parent: 174e8e8f1377440cfbceca9331c7f6fb85718024
author: mfrancis95 <mikefrancis95@gmail.com>
date: Wed Apr 28 14:53:54 EDT 2021
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