From 41404cad47768803724dcb2d2e0f5b2d7d0d84e2 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 11 Dec 2019 00:32:16 +1000 Subject: [PATCH] Add automated Linux build script Not providing downloads at this point, but at least I'll know when I break the build... --- .github/workflows/linux-build.yml | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/linux-build.yml diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml new file mode 100644 index 000000000..15b33ab52 --- /dev/null +++ b/.github/workflows/linux-build.yml @@ -0,0 +1,38 @@ +name: Linux Build + +on: + pull_request: + push: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: Install packages + shell: bash + run: sudo apt-get -y install libsdl2-dev libgtk2.0-dev + + - name: Compile debug build + shell: bash + run: | + mkdir build-debug + cd build-debug + cmake -DCMAKE_BUILD_TYPE=Debug .. + make + + - name: Compile release build + shell: bash + run: | + mkdir build-release + cd build-release + cmake -DCMAKE_BUILD_TYPE=Release .. + make +