Skip to content

Commit

Permalink
Merge pull request #40 from minhqdao/use-matrix-for-msys2
Browse files Browse the repository at this point in the history
Use matrix to setup `msys2` CI
  • Loading branch information
minhqdao authored Aug 2, 2024
2 parents 2e941a9 + 79b87a2 commit 3e90dd5
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,14 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: fpm test

fpm-test-mingw64-gcc:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
install: >-
mingw-w64-x86_64-gcc-fortran
mingw-w64-x86_64-fpm
- run: fpm test

fpm-test-ucrt64-gcc:
test-msys2:
strategy:
matrix:
include:
[
{ msystem: mingw64, build_variant: "" },
{ msystem: ucrt64, build_variant: "-ucrt" },
]
runs-on: windows-latest
defaults:
run:
Expand All @@ -63,10 +55,10 @@ jobs:
- uses: actions/checkout@v4
- uses: msys2/setup-msys2@v2
with:
msystem: ucrt64
msystem: ${{ matrix.msystem }}
install: >-
mingw-w64-ucrt-x86_64-gcc-fortran
mingw-w64-ucrt-x86_64-fpm
mingw-w64${{ matrix.build_variant }}-x86_64-gcc-fortran
mingw-w64${{ matrix.build_variant }}-x86_64-fpm
- run: fpm test

make-test:
Expand Down

0 comments on commit 3e90dd5

Please sign in to comment.