Skip to content

Commit 652f11e

Browse files
committed
ci: msys2 template
1 parent 3c9e3e3 commit 652f11e

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ on:
1616
- "**.f90"
1717
- ".github/workflows/ci.yml"
1818
- "!scripts/**"
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

@@ -28,7 +34,7 @@ jobs:
2834

2935
strategy:
3036
matrix:
31-
os: [ubuntu-24.04, macos-latest]
37+
os: [ubuntu-latest, macos-latest]
3238
shared: [true, false]
3339

3440
steps:
@@ -79,7 +85,7 @@ jobs:
7985

8086
strategy:
8187
matrix:
82-
os: [ubuntu-24.04, macos-latest]
88+
os: [ubuntu-latest, macos-latest]
8389

8490
steps:
8591
- uses: actions/checkout@v4

.github/workflows/ci_windows.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ env:
1313
CMAKE_BUILD_PARALLEL_LEVEL: 4
1414
CTEST_PARALLEL_LEVEL: 0
1515
CTEST_NO_TESTS_ACTION: error
16+
workflow_dispatch:
1617

18+
# avoid wasted runs
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
1722

1823
jobs:
1924

@@ -23,14 +28,15 @@ jobs:
2328

2429
steps:
2530
- uses: msys2/setup-msys2@v2
31+
id: msys2
2632
with:
2733
update: true
2834
install: >-
29-
mingw-w64-x86_64-gcc-fortran
30-
mingw-w64-x86_64-netcdf-fortran
35+
mingw-w64-ucrt-x86_64-gcc-fortran
36+
mingw-w64-ucrt-x86_64-netcdf-fortran
3137
3238
- name: Put MSYS2_MinGW64 on PATH
33-
run: echo "${{ runner.temp }}/msys64/mingw64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
39+
run: echo "${{ steps.msys2.outputs.msys2-location }}/ucrt64/bin/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
3440

3541
- name: prefix path
3642
run: |
@@ -46,8 +52,8 @@ jobs:
4652
- name: config
4753
run: cmake -G "MinGW Makefiles" --preset default
4854
env:
49-
HDF5_ROOT: ${{ runner.temp }}/msys64/mingw64/
50-
NetCDF_ROOT: ${{ runner.temp }}/msys64/mingw64/
55+
HDF5_ROOT: ${{ steps.msys2.outputs.msys2-location }}/ucrt64/
56+
NetCDF_ROOT: ${{ steps.msys2.outputs.msys2-location }}/ucrt64/
5157

5258
- name: build
5359
run: cmake --build --preset default

.github/workflows/oneapi-linux.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ on:
1919
- "**/CMakeLists.txt"
2020
- ".github/workflows/oneapi-linux.yml"
2121
- "!scripts/**"
22+
workflow_dispatch:
23+
24+
# avoid wasted runs
25+
concurrency:
26+
group: ${{ github.workflow }}-${{ github.ref }}
27+
cancel-in-progress: true
28+
2229

2330
jobs:
2431

0 commit comments

Comments
 (0)