Skip to content

Commit

Permalink
Merge pull request #88 from boozook/api/pre-build/windows
Browse files Browse the repository at this point in the history
Enable pre-build bindings build for windows
  • Loading branch information
boozook authored Sep 20, 2023
2 parents c775538 + ba91ec4 commit 6632cf2
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
os:
- macos-latest
- ubuntu-latest
# - windows-latest
- windows-latest
sdk:
- ${{ github.event.inputs.sdk || 'latest' }}
features:
Expand Down Expand Up @@ -135,7 +135,32 @@ jobs:
ref: ${{ needs.new-branch.outputs.working }}

- name: Cache
uses: Swatinem/[email protected]
uses: actions/cache@v3
with:
path: |
target/
~/.cargo
key: ${{ runner.os }}-update-${{ hashFiles('Cargo.lock') }}

- name: Cache LLVM
id: cache-llvm
if: runner.os == 'Windows'
uses: actions/cache@v3
with:
path: ${{ runner.temp }}/llvm
key: llvm-14.0

# See:
# https://github.com/rust-lang/rust-bindgen/issues/1797
# https://rust-lang.github.io/rust-bindgen/requirements.html#windows
- name: Install LLVM
if: runner.os == 'Windows'
uses: KyleMayes/[email protected]
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
env: true

- name: Install Playdate SDK ${{ matrix.sdk }}
id: sdk
Expand Down

0 comments on commit 6632cf2

Please sign in to comment.