Skip to content

Commit da909f8

Browse files
Apply .npy files patch again when running tests
1 parent 1f5e7b7 commit da909f8

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/ci-emscripten.yaml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,22 @@ jobs:
9191
with:
9292
python-version: ${{ env.PYTHON_VERSION }}
9393

94-
# - name: Set up Emscripten toolchain
95-
# uses: mymindstorm/setup-emsdk@v14
96-
# with:
97-
# version: ${{ env.EMSCRIPTEN_VERSION }}
98-
# actions-cache-folder: emsdk-cache
94+
- name: Checkout necessary patch(es)
95+
uses: actions/checkout@v4
96+
with:
97+
# Check out a single file
98+
sparse-checkout: tools/ci/patches/0003-fix-npy-file-access.patch
99+
sparse-checkout-cone-mode: false
100+
101+
- name: Set up Emscripten toolchain
102+
uses: mymindstorm/setup-emsdk@v14
103+
with:
104+
version: ${{ env.EMSCRIPTEN_VERSION }}
105+
actions-cache-folder: emsdk-cache
106+
107+
- name: Apply necessary patch(es)
108+
# We just need the third patch to fix the npy file access this time
109+
run: patch -d $EMSDK/upstream/emscripten/ -p1 < tools/ci/patches/0003-fix-npy-file-access.patch
99110

100111
- name: Install pyodide-build
101112
run: python -m pip install "pydantic<2" "pyodide-build==${{ env.PYODIDE_VERSION }}"

0 commit comments

Comments
 (0)