Skip to content

Commit

Permalink
Update CI_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Apr 22, 2024
1 parent 0d818d0 commit 94cfaa2
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/CI_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test
name: fpm
on: [push]
jobs:

Expand All @@ -9,18 +9,27 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain:
- {compiler: gcc}
- {compiler: intel}
- {compiler: intel-classic}
# - {compiler: intel}
- {compiler: nvidia-hpc}
exclude:
- os: windows-latest
toolchain: {compiler: nvidia-hpc}
- os: windows-latest
toolchain: {compiler: intel}
- os: windows-latest
toolchain: {compiler: intel-classic}
- os: macos-latest
toolchain: {compiler: nvidia-hpc}
- os: macos-latest
toolchain: {compiler: intel}

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -30,12 +39,16 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Fortran Compiler
uses: fortran-lang/setup-fortran@v1
uses: fortran-lang/setup-fortran@main
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}

- name: Install gcc@10 on macos required by fpm
if: contains(matrix.os, 'macos')
run: brew install gcc@10

- name: Run test (Debug)
run: fpm test --profile debug --flag '-fopenmp -DUSE_OMP' --compiler ${{ env.FC}}
env:
Expand Down

0 comments on commit 94cfaa2

Please sign in to comment.