aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-11-25 11:31:55 +0000
committerLaurence Kedward <laurence.kedward@bristol.ac.uk>2021-11-25 12:03:37 +0000
commit8b4f3a683db73c131467e591d319fe2d118bb8a8 (patch)
treea2c087c0fd63d1866198e17a8e680ca98def33ab
parent2e2f0e326235c9bca9ee3855f012ab74cc4a56ed (diff)
downloadfpm-8b4f3a683db73c131467e591d319fe2d118bb8a8.tar.gz
fpm-8b4f3a683db73c131467e591d319fe2d118bb8a8.zip
Update: Windows CI to use gfortran 9 from winlibs.
-rw-r--r--.github/workflows/CI.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 55c548f..3874636 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -59,6 +59,15 @@ jobs:
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
+ - name: Install GFortran Windows
+ if: contains(matrix.os, 'windows')
+ run: |
+ Invoke-WebRequest -Uri $Env:GCC_DOWNLOAD -OutFile mingw-w64.zip
+ Expand-Archive mingw-w64.zip
+ echo "$pwd\mingw-w64\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ env:
+ GCC_DOWNLOAD: "https://github.com/brechtsanders/winlibs_mingw/releases/download/9.4.0-9.0.0-msvcrt-r2/winlibs-x86_64-posix-seh-gcc-9.4.0-mingw-w64-9.0.0-r2.zip"
+
# Phase 1: Bootstrap fpm with existing version
- name: Install fpm
uses: fortran-lang/setup-fpm@v3