stupid commit to test CI #27
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 | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| # mostly stolen from | |
| # https://github.com/fmtlib/fmt | |
| jobs: | |
| build: | |
| runs-on: windows-2022 | |
| strategy: | |
| matrix: | |
| build_type: [Debug, RelWithDebInfo, Release] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure Vulkan SDK | |
| uses: humbletim/setup-vulkan-sdk@v1.2.1 | |
| with: | |
| vulkan-query-version: 1.4.328.1 | |
| vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Tools, Glslang | |
| vulkan-use-cache: true | |
| - name: Install CMake | |
| uses: ssrobins/install-cmake@v1 | |
| with: | |
| version: 3.30.2 | |
| - name: Create Build Environment | |
| run: cmake -E make_directory ${{runner.workspace}}/build | |
| - name: Configure | |
| # Use a bash shell for $GITHUB_WORKSPACE. | |
| shell: bash | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| cmake -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ | |
| $GITHUB_WORKSPACE | |
| - name: Build | |
| working-directory: ${{runner.workspace}}/build | |
| run: | | |
| $threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors | |
| cmake --build . --config ${{matrix.build_type}} --parallel $threads |