Skip to content

Commit

Permalink
Make build.yml faster
Browse files Browse the repository at this point in the history
  • Loading branch information
lithiumtoast committed Aug 5, 2023
1 parent f46d3c5 commit 0b167f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,25 @@ jobs:
key: "libs-${{ matrix.platform.rid }}-${{ hashFiles('ext/sokol/**/*') }}-${{ hashFiles('src/c/**/*') }}--${{ hashFiles('bindgen/**/*') }}"

- name: "Install Windows dependencies"
if: runner.os == 'Windows'
if: runner.os == 'Windows' && steps.cache-libs.outputs.cache-hit != 'true'
run: |
choco install ninja
- name: "Install macOS dependencies"
if: runner.os == 'macOS'
if: runner.os == 'macOS' && steps.cache-libs.outputs.cache-hit != 'true'
run: |
brew install ninja
- name: Setup Linux dependencies
if: runner.os == 'Linux'
if: runner.os == 'Linux' && steps.cache-libs.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install \
ninja-build \
libxi-dev libxcursor-dev libgl-dev libasound2-dev
- name: "Install C2CS"
if: steps.cache-libs.outputs.cache-hit != 'true'
shell: bash
run: dotnet tool install --global bottlenoselabs.C2CS.Tool

Expand Down

0 comments on commit 0b167f2

Please sign in to comment.