Skip to content

Commit 8fd1f2e

Browse files
committed
ci: msys2 template
1 parent a609211 commit 8fd1f2e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
paths:
99
- "**.py"
1010
- ".github/workflows/ci.yml"
11+
workflow_dispatch:
12+
13+
# avoid wasted runs
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
1117

1218
jobs:
1319

@@ -17,10 +23,10 @@ jobs:
1723
strategy:
1824
matrix:
1925
os: [ubuntu-latest, macos-latest]
20-
python: ['3.9', '3.11']
26+
python: ['3.9', '3.12']
2127

2228
env:
23-
FC: gfortran-12
29+
FC: gfortran-14
2430

2531
runs-on: ${{ matrix.os }}
2632
steps:
@@ -44,14 +50,15 @@ jobs:
4450

4551
steps:
4652
- uses: msys2/setup-msys2@v2
53+
id: msys2
4754
with:
4855
update: true
4956
install: >-
50-
mingw-w64-x86_64-gcc-fortran
57+
mingw-w64-ucrt-x86_64-gcc-fortran
5158
# Github actions Gfortran in default image is messed up.
5259

5360
- name: Put MSYS2_MinGW64 on PATH
54-
run: echo "${{ runner.temp }}/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
61+
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
5562

5663
- uses: actions/setup-python@v5
5764
with:

0 commit comments

Comments
 (0)