squall/.github/workflows/push.yml
2020-09-07 22:33:51 -05:00

42 lines
822 B
YAML

name: Push
on:
push:
branches:
- master
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: Ubuntu Latest (GCC)
os: ubuntu-latest
build_type: Release
cc: "gcc"
cxx: "g++"
- name: "macOS Latest (Clang)"
os: macos-latest
build_type: "Release"
cc: "clang"
cxx: "clang++"
steps:
- uses: actions/checkout@v2
- name: Prepare
run: mkdir build
- name: Configure
run: cd build && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
- name: Build
run: cd build && make
- name: Test
run: ./build/test/StormTest