Skip to content

Commit 4dfaf9a

Browse files
committed
Make ci-emscripten.yml match the other wheel jobs
1 parent 920ced0 commit 4dfaf9a

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/ci-emscripten.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
1-
name: Run Pyodide CI
1+
name: Build Pyodide
22

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]
134

145
jobs:
15-
build:
16-
runs-on: ubuntu-latest
6+
build_wheels:
7+
name: Build Pyodide wheel
8+
runs-on: ubuntu-22.04
179
env:
1810
# This needs to be kept in sync with pyodide-version in pyproject.toml
1911
EMSCRIPTEN_VERSION: 4.0.9
2012
steps:
21-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
- uses: actions/checkout@v6.0.2
2214

2315
- name: Set up Emscripten toolchain
2416
uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
@@ -31,9 +23,9 @@ jobs:
3123
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
3224
with:
3325
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
3527

36-
- name: Build and test Pyodide wheel
28+
- name: Build wheels
3729
uses: pypa/cibuildwheel@298ed2fb2c105540f5ed055e8a6ad78d82dd3a7e # v3.3.1
3830
env:
3931
CIBW_PLATFORM: pyodide
@@ -45,7 +37,7 @@ jobs:
4537
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4638
with:
4739
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
4941

5042
- uses: actions/upload-artifact@v7
5143
with:

0 commit comments

Comments
 (0)