Skip to content

Commit 99e5e09

Browse files
committed
ci: msys2 template
1 parent df39841 commit 99e5e09

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ on:
1616
- "**.cmake"
1717
- "**/CMakeLists.txt"
1818
- ".github/workflows/ci.yml"
19+
workflow_dispatch:
20+
21+
# avoid wasted runs
22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.ref }}
24+
cancel-in-progress: true
1925

2026
jobs:
2127

2228
linux-gcc:
23-
runs-on: ubuntu-24.04
29+
runs-on: ubuntu-latest
2430
timeout-minutes: 15
2531

2632
strategy:
@@ -133,12 +139,13 @@ jobs:
133139

134140
steps:
135141
- uses: msys2/setup-msys2@v2
142+
id: msys2
136143
with:
137144
update: true
138-
install: mingw-w64-x86_64-gcc-fortran
145+
install: mingw-w64-ucrt-x86_64-gcc-fortran
139146

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

143150
- uses: actions/checkout@v4
144151

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.25...3.30)
1+
cmake_minimum_required(VERSION 3.25...4.0)
22
# 3.19 for CheckSourceCompiles
33
# 3.25 for block()
44

0 commit comments

Comments
 (0)