From fe4e70b14365affff4d4e5d9f5ae8e870d0d5867 Mon Sep 17 00:00:00 2001 From: Moritz Heinemann Date: Wed, 10 Jul 2024 16:19:39 +0200 Subject: [PATCH] use third party actions for msvc env and ninja --- .github/workflows/build.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50ec0ec03a..f581a667b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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"