Skip to content

Commit b831593

Browse files
authored
Merge pull request #4 from gha3mi/dev
CI: Install fpm via Homebrew on macOS, remove gcc@10 installation
2 parents ce117d0 + f83c364 commit b831593

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/CI_test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,24 @@ jobs:
3434
submodules: recursive
3535

3636
- name: Setup Fortran Package Manager (fpm)
37+
if: matrix.os != 'macos-latest'
3738
uses: fortran-lang/setup-fpm@v7
3839
with:
3940
github-token: ${{ secrets.GITHUB_TOKEN }}
4041

42+
- name: Install fpm on macOS
43+
if: matrix.os == 'macos-latest'
44+
run: |
45+
brew tap fortran-lang/homebrew-fortran
46+
brew install fpm
47+
4148
- name: Setup Fortran Compiler
4249
uses: fortran-lang/setup-fortran@main
4350
id: setup-fortran
4451
with:
4552
compiler: ${{ matrix.toolchain.compiler }}
4653
version: ${{ matrix.toolchain.version }}
4754

48-
- name: Install gcc@10 on macos required by fpm
49-
if: contains(matrix.os, 'macos')
50-
run: brew install gcc@10
51-
5255
- name: Run test (Debug)
5356
run: fpm test --profile debug --flag '-fopenmp -DUSE_OMP' --compiler ${{ env.FC}}
5457
env:

0 commit comments

Comments
 (0)