diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index dcd0be4e..07a85d75 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -102,7 +102,7 @@ jobs: os: - macos-latest - ubuntu-latest - # - windows-latest + - windows-latest sdk: - ${{ github.event.inputs.sdk || 'latest' }} features: @@ -135,7 +135,32 @@ jobs: ref: ${{ needs.new-branch.outputs.working }} - name: Cache - uses: Swatinem/rust-cache@v2.6.2 + 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/install-llvm-action@v1.8.3 + 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