Skip to content

Commit

Permalink
use third party actions for msvc env and ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 10, 2024
1 parent bcbe11c commit fe4e70b
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,13 @@ 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
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
with:
destination: $RUNNER_WORKSPACE/ninja-build
- name: Configure
run: >-
cmake -S . -B $GITHUB_WORKSPACE/build -G "Ninja"
Expand Down

0 comments on commit fe4e70b

Please sign in to comment.