|
11 | 11 | timeout-minutes: 60
|
12 | 12 | runs-on: ubuntu-22.04
|
13 | 13 | env:
|
14 |
| - WASMTIME_VERSION: 18.0.3 |
| 14 | + WASMTIME_VERSION: 22.0.0 |
15 | 15 | WASI_SDK_VERSION: 21
|
16 | 16 | WASI_SDK_PATH: /opt/wasi-sdk
|
17 | 17 | CROSS_BUILD_PYTHON: cross-build/build
|
|
20 | 20 | - uses: actions/checkout@v4
|
21 | 21 | # No problem resolver registered as one doesn't currently exist for Clang.
|
22 | 22 | - name: "Install wasmtime"
|
23 |
| - uses: jcbhmr/setup-wasmtime@v2 |
| 23 | + uses: bytecodealliance/actions/wasmtime/setup@v1 |
24 | 24 | with:
|
25 |
| - wasmtime-version: ${{ env.WASMTIME_VERSION }} |
| 25 | + version: ${{ env.WASMTIME_VERSION }} |
26 | 26 | - name: "Restore WASI SDK"
|
27 | 27 | id: cache-wasi-sdk
|
28 | 28 | uses: actions/cache@v4
|
|
50 | 50 | uses: actions/cache@v4
|
51 | 51 | with:
|
52 | 52 | path: ${{ env.CROSS_BUILD_PYTHON }}/config.cache
|
53 |
| - # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python |
54 |
| - key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ inputs.config_hash }}-${{ env.pythonLocation }} |
| 53 | + # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python. |
| 54 | + # Include the hash of `Tools/wasm/wasi.py` as it may change the environment variables. |
| 55 | + # (Make sure to keep the key in sync with the other config.cache step below.) |
| 56 | + key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi.py') }}-${{ env.pythonLocation }} |
55 | 57 | - name: "Configure build Python"
|
56 | 58 | run: python3 Tools/wasm/wasi.py configure-build-python -- --config-cache --with-pydebug
|
57 | 59 | - name: "Make build Python"
|
|
60 | 62 | uses: actions/cache@v4
|
61 | 63 | with:
|
62 | 64 | path: ${{ env.CROSS_BUILD_WASI }}/config.cache
|
63 |
| - # Include env.pythonLocation in key to avoid changes in environment when setup-python updates Python |
64 |
| - key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-wasi-sdk-${{ env.WASI_SDK_VERSION }}-${{ inputs.config_hash }}-${{ env.pythonLocation }} |
| 65 | + # Should be kept in sync with the other config.cache step above. |
| 66 | + key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ env.WASI_SDK_VERSION }}-${{ env.WASMTIME_VERSION }}-${{ inputs.config_hash }}-${{ hashFiles('Tools/wasm/wasi.py') }}-${{ env.pythonLocation }} |
65 | 67 | - name: "Configure host"
|
66 | 68 | # `--with-pydebug` inferred from configure-build-python
|
67 | 69 | run: python3 Tools/wasm/wasi.py configure-host -- --config-cache
|
|
0 commit comments