Skip to content

Commit

Permalink
update windows build
Browse files Browse the repository at this point in the history
Signed-off-by: albert <[email protected]>
  • Loading branch information
Albkat committed Dec 19, 2023
1 parent 4281891 commit 84bee47
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
build: [meson, cmake]
build-type: [debug]
compiler: [gnu]
Expand All @@ -41,7 +41,7 @@ jobs:
- os: windows-latest
build: meson
build-type: debug
compiler: msys
compiler: gnu
version: 10

- os: ubuntu-latest
Expand All @@ -52,20 +52,20 @@ jobs:

defaults:
run:
shell: ${{ matrix.compiler == 'msys' && 'msys2 {0}' || 'bash' }}
shell: ${{ matrix.os == 'windows-latest' && 'msys2 {0}' || 'bash' }}

env:
FC: ${{ matrix.compiler == 'intel' && 'ifort' || 'gfortran' }}
CC: ${{ matrix.compiler == 'intel' && 'icc' || 'gcc' }}
GCC_V: ${{ matrix.version }}
OMP_NUM_THREADS: 1,2,1
OMP_NUM_THREADS: 1,2
PYTHON_V: 3.8

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-python@v1
- uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_V }}

Expand All @@ -85,7 +85,7 @@ jobs:
--slave /usr/bin/gcov gcov /usr/bin/gcov-${{ env.GCC_V }}
- name: Install GCC (Windows)
if: ${{ contains(matrix.os, 'windows') && matrix.compiler == 'msys' }}
if: ${{ contains(matrix.os, 'windows') && matrix.compiler == 'gnu' }}
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:

- name: Install build and test dependencies
if: ${{ contains(matrix.os, 'windows') }}
run: pip3 install meson==0.55
run: pip3 install meson==0.55

- name: Configure build (meson)
if: ${{ matrix.build == 'meson' }}
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:
- name: Run unit tests
if: ${{ matrix.build == 'meson' }}
run: |
meson test -C ${{ env.BUILD_DIR }} --print-errorlogs --no-rebuild --num-processes 2 -t 2
meson test -C ${{ env.BUILD_DIR }} --print-errorlogs --no-rebuild --num-processes 1 -t 120
- name: Run unit tests
if: ${{ matrix.build == 'cmake' }}
Expand Down

0 comments on commit 84bee47

Please sign in to comment.