From 8cd071bd96de2e68f8cbb2c0df21ea8166485f83 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 24 Sep 2019 08:50:55 +0200 Subject: [PATCH] github actions --- .github/workflows/main.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..67d356ba42 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: CI + +on: [push] + +jobs: + build: + timeout-minutes: 5 + + strategy: + matrix: [ubuntu-18.04, ubuntu-latest] + compiler: [g++, clang++] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Compile tests + working-directory: build + env: + CXX: ${{ matrix.compiler }} + run: | + cmake -DBUILD_TESTING=ON -DBUILD_LIB=ON .. + make -j4 + - name: Run tests + working-directory: build + env: + CTEST_OUTPUT_ON_FAILURE: 1 + run: ctest --timeout 5 -C Debug -j4 +