Skip to content

Commit

Permalink
build with ninja on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 10, 2024
1 parent aee83f7 commit bcbe11c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,21 @@ jobs:
name: "Windows (${{ matrix.job.name }})"
runs-on: windows-2022
steps:
- name: Install Ninja
run: |
$ninjaPath = "$env:RUNNER_WORKSPACE\ninja"
New-Item -ItemType Directory -Force -Path $ninjaPath
Invoke-WebRequest -Uri "https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip" -OutFile "$ninjaPath\ninja.zip"
Expand-Archive -Path "$ninjaPath\ninja.zip" -DestinationPath $ninjaPath
Remove-Item "$ninjaPath\ninja.zip" -Force
echo "$ninjaPath" | Out-File -Append -FilePath $env:GITHUB_PATH
shell: pwsh
- uses: actions/checkout@v4
with:
show-progress: false
- name: Configure
run: >-
cmake -S . -B $GITHUB_WORKSPACE/build -G "Visual Studio 17 2022"
cmake -S . -B $GITHUB_WORKSPACE/build -G "Ninja"
${{ matrix.job.no-gl && env.MM_NO_GL_CONFIG || env.MM_DEFAULT_CONFIG }}
- name: Build
run: cmake --build $GITHUB_WORKSPACE/build --config ${{ matrix.job.configuration }} --parallel 2
Expand Down

0 comments on commit bcbe11c

Please sign in to comment.