Skip to content

Commit

Permalink
CI: Install Ninja on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Jul 28, 2024
1 parent a28e0d8 commit 5bc44d3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5bc44d3

Please sign in to comment.