Skip to content

Commit b0ab3bb

Browse files
authored
Merge pull request #270 from jvdp1/ci_gfortran10
Add gfortran 10 to CI
2 parents 7b24642 + 438e2cf commit b0ab3bb

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/CI.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest, macos-latest]
24-
gcc_v: [7, 8, 9] # Version of GFortran we want to use.
24+
gcc_v: [7, 8, 9, 10] # Version of GFortran we want to use.
2525
env:
2626
FC: gfortran-${{ matrix.gcc_v }}
2727
GCC_V: ${{ matrix.gcc_v }}
@@ -73,14 +73,14 @@ jobs:
7373
working-directory: build
7474

7575
- name: Test in-tree builds
76-
if: contains( matrix.gcc_v, '9') # Only test one compiler on each platform
76+
if: contains( matrix.gcc_v, '10') # Only test one compiler on each platform
7777
run: |
7878
cmake -DCMAKE_MAXIMUM_RANK=4 .
7979
cmake --build .
8080
cmake --build . --target test
8181
8282
- name: Test manual makefiles
83-
if: contains(matrix.os, 'ubuntu') && contains(matrix.gcc_v, '9')
83+
if: contains(matrix.os, 'ubuntu') && contains(matrix.gcc_v, '10')
8484
run: |
8585
make -f Makefile.manual FYPPFLAGS="-DMAXRANK=4"
8686
make -f Makefile.manual test

.github/workflows/doc-deployment.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,24 @@ env:
2020
jobs:
2121
Build-API-Docs:
2222
runs-on: macos-latest
23+
env:
24+
GCC_V: 10
2325
steps:
2426
- uses: actions/checkout@v2
2527
with:
2628
fetch-depth: 0 # Full history to get tag and commit info
2729
- name: Install GFortran macOS
28-
run: brew install gcc || brew upgrade gcc || true
30+
run: |
31+
brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
32+
brew link gcc@${GCC_V}
33+
gfortran-${GCC_V} --version
2934
- name: Install Dependencies
3035
run: |
3136
pip3 install --prefer-binary --no-clean --disable-pip-version-check --progress-bar off lxml fypp
3237
brew install -f --force-bottle --keep-tmp ford
3338
type -a ford
3439
ford --version
35-
gfortran --version
40+
gfortran-${GCC_V} --version
3641
- name: Skip graph and search unless deploying
3742
if: github.ref != 'refs/heads/master' && ! startsWith( github.ref, 'refs/tags/' )
3843
run: |

0 commit comments

Comments
 (0)