commit ee3113147b03ae312f3899e78865fb98116d73ab
Author: mfrancis95 <mikefrancis95@gmail.com>
AuthorDate: Wed Apr 28 18:53:54 2021 -0400
Commit: mfrancis95 <mikefrancis95@gmail.com>
CommitDate: Wed Apr 28 18:53:54 2021 -0400
Onboard GitHub Actions
---
.github/workflows/main.yml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 00000000..47bb0ab4
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,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