From 94cfaa27a9afa4979b1f7c7507f67973980650cd Mon Sep 17 00:00:00 2001 From: Seyed Ali Ghasemi Date: Mon, 22 Apr 2024 11:46:32 +0200 Subject: [PATCH] Update CI_test.yml --- .github/workflows/CI_test.yml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI_test.yml b/.github/workflows/CI_test.yml index ec44a25..f5b36c9 100644 --- a/.github/workflows/CI_test.yml +++ b/.github/workflows/CI_test.yml @@ -1,4 +1,4 @@ -name: test +name: fpm on: [push] jobs: @@ -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 @@ -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: