2019-12-10 14:32:16 +00:00
|
|
|
name: Linux Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Install packages
|
|
|
|
shell: bash
|
2019-12-12 15:31:21 +00:00
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install libsdl2-dev libgtk2.0-dev
|
2019-12-10 14:32:16 +00:00
|
|
|
|
|
|
|
- name: Compile debug build
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build-debug
|
|
|
|
cd build-debug
|
2019-12-31 06:17:17 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_QT_FRONTEND=OFF ..
|
2019-12-10 14:32:16 +00:00
|
|
|
make
|
|
|
|
|
|
|
|
- name: Compile release build
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir build-release
|
|
|
|
cd build-release
|
2019-12-31 06:17:17 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_QT_FRONTEND=OFF ..
|
2019-12-10 14:32:16 +00:00
|
|
|
make
|
|
|
|
|