[pre-commit.ci] pre-commit autoupdate #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Windows MSYS2' | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '!docs/**' | |
- '!.github/workflows/**' | |
- '.github/workflows/Windows-MSYS2.yml' | |
pull_request: | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { icon: 'π¨', sys: mingw32, compiler: gcc } | |
- { icon: 'π¦', sys: mingw64, compiler: gcc } | |
- { icon: 'π©', sys: ucrt64, compiler: gcc } | |
- { icon: 'π₯', sys: clang64, compiler: clang } | |
#- { icon: 'πͺ', sys: clang32, compiler: clang } | |
name: 'π§ ${{ matrix.icon }} ${{ matrix.sys }}' | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- name: 'π§° Checkout' | |
uses: actions/checkout@v3 | |
- name: 'π₯ Load .env file' | |
if: hashFiles('.github/workflows/.env') != '' | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: .github/workflows | |
- name: '${{ matrix.icon }} Setup MSYS2' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
path-type: minimal | |
release: true | |
update: true | |
pacboy: >- | |
cmake:p | |
ninja:p | |
${{matrix.compiler}}:p | |
${{env.INSTALL_PACKAGES}} | |
- name: 'π§ Configure' | |
run: cmake -S . -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DBUILD_TESTS=${{ env.BUILD_TESTS }} -DBUILD_DOCS=${{ env.BUILD_DOCS }} -DBUILD_EXAMPLES=${{ env.BUILD_EXAMPLES }} | |
- name: 'βοΈ Build' | |
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel ${{ env.CMAKE_NUMBER_JOBS }} | |
- name: 'π§ͺ Run tests' | |
working-directory: ${{ env.CMAKE_BUILD_PREFIX }} | |
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} --parallel ${{ env.CMAKE_NUMBER_JOBS_TESTS }} -VV --output-on-failure |