Skip to content

Commit 6d77983

Browse files
committed
[force ci] Test build pyodide.
1 parent b3a11f6 commit 6d77983

File tree

2 files changed

+12
-104
lines changed

2 files changed

+12
-104
lines changed

.github/workflows/build.yml

+8-99
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,13 @@ jobs:
118118
matrix:
119119
include:
120120
- python: "3.11"
121-
pyodide: "0.25.0"
121+
pyodide: "0.25.1"
122122
- python: "3.12"
123-
pyodide: "0.26.0a2"
123+
pyodide: "0.26.2"
124+
- python: "3.12"
125+
pyodide: "0.27.3"
126+
- python: "3.12"
127+
pyodide: "0.28.0"
124128
steps:
125129
- name: checkout
126130
uses: actions/checkout@v3
@@ -140,17 +144,17 @@ jobs:
140144
python -m pip install pyodide-build==${{ matrix.pyodide }}
141145
git clone https://github.com/emscripten-core/emsdk.git
142146
cd emsdk
147+
pyodide config get emscripten_version
143148
PYODIDE_EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
144149
./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION}
145150
./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
146151
- name: build
147152
run: |
148153
source emsdk/emsdk_env.sh
149154
cd PyTAT
150-
export SKBUILD_CMAKE_DEFINE=TAT_MATH_LIBRARIES=$PWD/.pyodide-xbuildenv/xbuildenv/pyodide-root/packages/.libs/lib/libopenblas.so
155+
export SKBUILD_CMAKE_DEFINE="PYBIND11_FINDPYTHON=ON;TAT_MATH_LIBRARIES="
151156
export CMAKE_BUILD_PARALLEL_LEVEL=4
152157
pyodide build --exports pyinit
153-
# pyodide auditwheel repair dist/*.whl --libdir .pyodide-xbuildenv/xbuildenv/pyodide-root/packages/.libs/lib
154158
- name: test
155159
run: |
156160
cd PyTAT
@@ -171,105 +175,10 @@ jobs:
171175
fail-fast: false
172176
matrix:
173177
include:
174-
# Always support manylinux platform
175-
- os: ubuntu-latest
176-
python: 38
177-
platform_id: manylinux_x86_64
178-
- os: ubuntu-latest
179-
python: 39
180-
platform_id: manylinux_x86_64
181-
- os: ubuntu-latest
182-
python: 310
183-
platform_id: manylinux_x86_64
184-
- os: ubuntu-latest
185-
python: 311
186-
platform_id: manylinux_x86_64
187178
- os: ubuntu-latest
188179
python: 312
189180
platform_id: manylinux_x86_64
190181

191-
- os: ubuntu-latest
192-
python: 38
193-
platform_id: manylinux_aarch64
194-
- os: ubuntu-latest
195-
python: 39
196-
platform_id: manylinux_aarch64
197-
- os: ubuntu-latest
198-
python: 310
199-
platform_id: manylinux_aarch64
200-
- os: ubuntu-latest
201-
python: 311
202-
platform_id: manylinux_aarch64
203-
- os: ubuntu-latest
204-
python: 312
205-
platform_id: manylinux_aarch64
206-
207-
# Always support musllinux platform
208-
- os: ubuntu-latest
209-
python: 38
210-
platform_id: musllinux_x86_64
211-
- os: ubuntu-latest
212-
python: 39
213-
platform_id: musllinux_x86_64
214-
- os: ubuntu-latest
215-
python: 310
216-
platform_id: musllinux_x86_64
217-
- os: ubuntu-latest
218-
python: 311
219-
platform_id: musllinux_x86_64
220-
- os: ubuntu-latest
221-
python: 312
222-
platform_id: musllinux_x86_64
223-
224-
- os: ubuntu-latest
225-
python: 38
226-
platform_id: musllinux_aarch64
227-
- os: ubuntu-latest
228-
python: 39
229-
platform_id: musllinux_aarch64
230-
- os: ubuntu-latest
231-
python: 310
232-
platform_id: musllinux_aarch64
233-
- os: ubuntu-latest
234-
python: 311
235-
platform_id: musllinux_aarch64
236-
- os: ubuntu-latest
237-
python: 312
238-
platform_id: musllinux_aarch64
239-
240-
# Only support the latest two version for macos platform
241-
- os: macos-latest
242-
python: 311
243-
platform_id: macosx_x86_64
244-
mac_arch: x86_64
245-
- os: macos-latest
246-
python: 312
247-
platform_id: macosx_x86_64
248-
mac_arch: x86_64
249-
250-
- os: macos-latest
251-
python: 311
252-
platform_id: macosx_arm64
253-
mac_arch: arm64
254-
- os: macos-latest
255-
python: 312
256-
platform_id: macosx_arm64
257-
mac_arch: arm64
258-
259-
# Only support latest four version for windows platform
260-
- os: windows-latest
261-
python: 39
262-
platform_id: win_amd64
263-
- os: windows-latest
264-
python: 310
265-
platform_id: win_amd64
266-
- os: windows-latest
267-
python: 311
268-
platform_id: win_amd64
269-
- os: windows-latest
270-
python: 312
271-
platform_id: win_amd64
272-
273182
steps:
274183
- name: checkout
275184
uses: actions/checkout@v3

PyTAT/test_wasm.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ async function main() {
66

77
const pyodide = await require("pyodide").loadPyodide();
88
await pyodide.loadPackage("micropip");
9-
await pyodide.loadPackage("openblas");
10-
// openblas should be loaded manually before loading TAT
11-
// see https://github.com/ryanking13/auditwheel-emscripten/issues/24
12-
// when this been fixed, removing load openblas manually,
13-
// and uncomment pyodide auditwheel in github action.
149

1510
const mount_dir = "/app";
1611
pyodide.FS.mkdir(mount_dir);
@@ -22,6 +17,8 @@ async function main() {
2217
async def main():
2318
import micropip
2419
20+
await micropip.install("openblas");
21+
2522
import os
2623
files = os.listdir("/app/dist")
2724
await micropip.install(f"emfs:/app/dist/{files[0]}")
@@ -36,6 +33,8 @@ async def main():
3633
3734
main()
3835
`);
36+
3937
process.exit(result);
4038
}
39+
4140
main();

0 commit comments

Comments
 (0)