Skip to content

Commit

Permalink
Updating ci
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Jul 25, 2023
1 parent add9adb commit 47b7c6c
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/ContinuousIntegration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,43 @@
name: Continuous Integration

# This workflow is triggered on pushes and pull requests to the repository.
on:
# This workflow will also run each Monday on the default branch (i.e. master)
on:
schedule:
- cron: '0 0 * * 1'
push:
branches: '**'
pull_request:
pull_request:
branches: 'master'

jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-18.04, macos-10.15 ]
cxx: [ clang++ ]
vFortran: [ gfortran-8 ]
os: [ ubuntu-20.04, macos-11 ]
cxx: [ clang++, g++-10 ]
vFortran: [ gfortran-10 ]
build_type: [ Debug, Release ]

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

0 comments on commit 47b7c6c

Please sign in to comment.