From 5bc44d3922b51fcaf0f549efd6b97889416ba733 Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Sun, 28 Jul 2024 11:32:26 -0700 Subject: [PATCH] CI: Install Ninja on Windows --- .github/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a122802..5ec7570 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,12 +29,22 @@ jobs: uses: Dup4/actions-setup-gcc@v1 with: version: latest + - name: Install Ninja (Linux) if: runner.os == 'Linux' run: sudo apt-get install -y ninja-build - name: Install Ninja (macOS) if: runner.os == 'macOS' run: brew install ninja + - name: Install Ninja (Windows) + if: runner.os == 'Windows' + shell: powershell + run: | + Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') + scoop install ninja --global + # Scoop modifies the PATH so we make the modified PATH global. + echo "PATH=$env:PATH" >> $GITHUB_ENV + - name: build debug run: make debug shell: bash