|
1 | | -name: Run Pyodide CI |
| 1 | +name: Build Pyodide |
2 | 2 |
|
3 | | -on: |
4 | | - pull_request: |
5 | | - workflow_dispatch: |
6 | | - |
7 | | -env: |
8 | | - FORCE_COLOR: 3 |
9 | | - |
10 | | -concurrency: |
11 | | - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} |
12 | | - # cancel-in-progress: true |
| 3 | +on: [push, pull_request] |
13 | 4 |
|
14 | 5 | jobs: |
15 | | - build: |
16 | | - runs-on: ubuntu-latest |
| 6 | + build_wheels: |
| 7 | + name: Build Pyodide wheel |
| 8 | + runs-on: ubuntu-22.04 |
17 | 9 | env: |
18 | 10 | # This needs to be kept in sync with pyodide-version in pyproject.toml |
19 | 11 | EMSCRIPTEN_VERSION: 4.0.9 |
20 | 12 | steps: |
21 | | - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 13 | + - uses: actions/checkout@v6.0.2 |
22 | 14 |
|
23 | 15 | - name: Set up Emscripten toolchain |
24 | 16 | uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14 |
|
31 | 23 | uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 |
32 | 24 | with: |
33 | 25 | path: ${{ github.workspace }}/wasm-library-dir |
34 | | - key: wasm-library-dir-${{ hashFiles('pyproject.toml', 'bin/cibw_before_all_pyodide.sh', 'bin/pyodide_build_dependencies.sh', 'bin/build_variables.sh') }}-0 |
| 26 | + key: wasm-library-dir-${{ env.EMSCRIPTEN_VERSION }}-${{ hashFiles('pyproject.toml', 'bin/cibw_before_all_pyodide.sh', 'bin/pyodide_build_dependencies.sh', 'bin/build_variables.sh') }}-0 |
35 | 27 |
|
36 | | - - name: Build and test Pyodide wheel |
| 28 | + - name: Build wheels |
37 | 29 | uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1 |
38 | 30 | env: |
39 | 31 | CIBW_PLATFORM: pyodide |
|
45 | 37 | uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3 |
46 | 38 | with: |
47 | 39 | path: ${{ github.workspace }}/wasm-library-dir |
48 | | - key: wasm-library-dir-${{ hashFiles('pyproject.toml', 'bin/cibw_before_all_pyodide.sh', 'bin/pyodide_build_dependencies.sh', 'bin/build_variables.sh') }}-0 |
| 40 | + key: wasm-library-dir-${{ env.EMSCRIPTEN_VERSION }}-${{ hashFiles('pyproject.toml', 'bin/cibw_before_all_pyodide.sh', 'bin/pyodide_build_dependencies.sh', 'bin/build_variables.sh') }}-0 |
49 | 41 |
|
50 | 42 | - uses: actions/upload-artifact@v7 |
51 | 43 | with: |
|
0 commit comments