Skip to content

Commit

Permalink
[CI] Use GitHub actions to build and test SOLL
Browse files Browse the repository at this point in the history
  • Loading branch information
hydai committed Jul 24, 2020
1 parent 798a7dd commit 9d24599
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: build and test SOLL

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build_and_test_gcc_debug:
runs-on: ubuntu-latest
container:
image: secondstate/soll:latest

steps:
- uses: actions/checkout@v2

- name: Setup build folder
run: |
rm -rf build
mkdir -p build
- name: Build SOLL using g++
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DSOLL_INCLUDE_TESTS=true ..
make -j2
- name: Test SSVM
run: |
cd build
ctest
build_and_test_gcc_release:
runs-on: ubuntu-latest
container:
image: secondstate/soll:latest

steps:
- uses: actions/checkout@v2

- name: Setup build folder
run: |
rm -rf build
mkdir -p build
- name: Build SOLL using g++
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DSOLL_INCLUDE_TESTS=true ..
make -j2
- name: Test SSVM
run: |
cd build
ctest

0 comments on commit 9d24599

Please sign in to comment.