Skip to content

Commit

Permalink
Create ContinuousIntegration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jlconlin authored Jun 30, 2020
1 parent c02e008 commit f893df5
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ContinuousIntegration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# GitHub workflow to enable continuous integratoin
name: Continuous Integration

# This workflow is triggered on pushes and pull requests to the repository.
on:
push:
branches: '**'
pull_request:
branches: 'master'

jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-18.04, macos-10.15 ]
cxx: [ g++-9, clang++ ]
build_type: [ Debug, Release ]

steps:
- name: which CXX
run: |
which ${{matrix.cxx}}
${{matrix.cxx}} --version
- uses: actions/checkout@v2
- name: mkdir bin
run: mkdir bin
- name: cmake
run: cmake -D CMAKE_CXX_COMPILER=`which ${{matrix.cxx}}` -D CMAKE_BUILD_TYPE=${{matrix.build_type}} ..
working-directory: ./bin
- name: make
run: make
working-directory: ./bin
- name: ctest
run: ctest -j2
working-directory: ./bin

0 comments on commit f893df5

Please sign in to comment.