Skip to content

Commit

Permalink
CI: enable pre-build bindings build for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 20, 2023
1 parent c775538 commit ba91ec4
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 ba91ec4

Please sign in to comment.