Unverified Commit 226818bd authored by Gauthier Quesnel's avatar Gauthier Quesnel Committed by GitHub
Browse files

github: add linux action file

Use github actions to perform continuous integration build on
ubuntu latest and gcc-10. (closes: #50)
parent 2e860429
name: Linux
on:
push:
branches: [ master, test ]
pull_request:
branches: [ master, test ]
env:
TEST_OUTPUT_ON_FAILURE: 1
CC: gcc-10
CXX: g++-10
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
BUILD_TYPE: [Debug, RelWithDebInfo, Release]
steps:
- name: Checkout repository and submodule
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get install build-essential cmake libglew-dev libglfw3-dev libglx0 libopengl0 libgl1-mesa-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment