Bump jwlawson/actions-setup-cmake from 2.0 to 2.1 #250
Workflow file for this run
This file contains hidden or 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' | |
| env: | |
| CMAKE_BUILD_TYPE: 'Release' | |
| CMAKE_BUILD_PREFIX: './build' | |
| CMAKE_SOURCE_PREFIX: '.' | |
| BUILD_TESTS: YES | |
| BUILD_DOCS: NO | |
| BUILD_EXAMPLES: NO | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| tests: | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| cmake-version: ['3.16','3.17','3.18','3.19','3.20','3.21'] | |
| sys: ['mingw32','mingw64','ucrt64','clang64'] | |
| include: | |
| - { icon: '🟨', sys: mingw32, env: i686, name: MINGW32 } | |
| - { icon: '🟦', sys: mingw64, env: x86_64, name: MINGW64 } | |
| - { icon: '🟩', sys: ucrt64, env: ucrt-x86_64, name: UCRT64 } # Experimental! | |
| - { icon: '🟥', sys: clang64, env: clang-x86_64, name: Clang64 } # Experimental! | |
| name: '${{ matrix.icon }}🧪 Test CMake ${{ matrix.cmake-version }} ${{ matrix.name }}' | |
| steps: | |
| - name: '🧰 Checkout' | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: '${{ matrix.icon }} Setup CMake' | |
| uses: jwlawson/actions-setup-cmake@v2.1 | |
| with: | |
| cmake-version: '${{ matrix.cmake-version }}.x' | |
| github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: '${{ matrix.icon }} Setup MSYS2' | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: ${{matrix.sys}} | |
| path-type: minimal | |
| release: true | |
| update: true | |
| install: >- | |
| git | |
| make | |
| mingw-w64-${{matrix.env}}-toolchain | |
| mingw-w64-${{matrix.env}}-cmake | |
| mingw-w64-${{matrix.env}}-python | |
| - name: '🔧 Configure' | |
| run: cmake -S ${{ env.CMAKE_SOURCE_PREFIX }} -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -D BUILD_TESTS=${{ env.BUILD_TESTS }} -D BUILD_DOCS=${{ env.BUILD_DOCS }} -D BUILD_EXAMPLES=${{ env.BUILD_EXAMPLES }} -Thost=x64 | |
| - name: '🧪 Run tests' | |
| working-directory: ${{ env.CMAKE_BUILD_PREFIX }} | |
| run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} -VV --output-on-failure |