Skip to content

Commit

Permalink
chore(ci): add MSYS2 cmake tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jan 6, 2024
1 parent 17a9ab9 commit 665b74e
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,69 @@ jobs:
echo "::group::CTest"
ctest --no-tests=error --test-dir out -VV --build-config Release
echo "::endgroup::CTest"
msys2-cmake-test:
name: msys2-cmake-${{ matrix.msystem }}
needs: makefile-analysis
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
msystem: ["mingw64", "ucrt64", "clang32", "clang64"] # "mingw32" disabled, c.f. https://github.com/aklomp/base64/issues/131
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MSYS2 ${{matrix.msystem}}
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.msystem}}
update: true
install: >-
make
pacboy: >-
toolchain:p
cmake:p
- name: CMake Configure
shell: msys2 {0}
run: >
cmake
-B out
-Werror=dev
-DBASE64_BUILD_TESTS=ON
-DCMAKE_BUILD_TYPE=Release
-DBASE64_WITH_AVX512=OFF
- name: CMake Build
shell: msys2 {0}
run: cmake --build out --config Release --verbose
- name: CTest
shell: msys2 {0}
run: ctest --no-tests=error --test-dir out -VV --build-config Release

msys2-makefile-test:
name: msys2-makefile-${{ matrix.msystem }} ${{ ((matrix.openmp == 1) && '+openmp') || '' }}
needs: makefile-analysis
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
msystem: ["mingw64", "ucrt64", "clang32", "clang64"] # "mingw32" disabled, c.f. https://github.com/aklomp/base64/issues/131
openmp: ["0", "1"]
env:
CC: cc.exe
OPENMP: ${{ matrix.openmp }}
OMP_NUM_THREADS: ${{ ((matrix.openmp == 1) && '2') || '0' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup MSYS2 ${{matrix.msystem}}
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.msystem}}
update: true
install: >-
make
pacboy: >-
toolchain:p
- name: Run tests
shell: msys2 {0}
run: ./test/ci/test.sh

0 comments on commit 665b74e

Please sign in to comment.