mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
Update pyodide.yml
This commit is contained in:
parent
4d0394e33f
commit
4cdc3d6b1a
10
.github/workflows/pyodide.yml
vendored
10
.github/workflows/pyodide.yml
vendored
|
@ -22,12 +22,18 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Configure CMake and build
|
- name: Configure CMake and build
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update && sudo apt-get install -y python3-dev python3-pip python3-venv
|
sudo apt-get update && sudo apt-get install -y python3-dev python3-pip python3-venv
|
||||||
python3 -m venv ~/env
|
python3 -m venv ~/env
|
||||||
~/env/bin/pip install pyodide-build
|
~/env/bin/pip install pyodide-build
|
||||||
git clone https://github.com/emscripten-core/emsdk.git ~/emsdk && cd ~/emsdk && PYODIDE_EMSCRIPTEN_VERSION=$(~/env/bin/pyodide config get emscripten_version) && ./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION} && ./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
|
git clone https://github.com/emscripten-core/emsdk.git ~/emsdk && cd ~/emsdk && PYODIDE_EMSCRIPTEN_VERSION=$(~/env/bin/pyodide config get emscripten_version) && ./emsdk install ${PYODIDE_EMSCRIPTEN_VERSION} && ./emsdk activate ${PYODIDE_EMSCRIPTEN_VERSION}
|
||||||
|
|
||||||
|
- name: Setup EMSDK
|
||||||
|
run: |
|
||||||
source ~/emsdk/emsdk_env.sh && cd src/api/python && ~/env/bin/pyodide build --exports whole_archive
|
source ~/emsdk/emsdk_env.sh && cd src/api/python && ~/env/bin/pyodide build --exports whole_archive
|
||||||
source ~/emsdk/emsdk_emv.sh && ~/env/bin/pyodide venv ~/env-pyodide
|
source ~/emsdk/emsdk_emv.sh && ~/env/bin/pyodide venv ~/env-pyodide
|
||||||
|
|
||||||
|
- name: Setup z3 wheel
|
||||||
|
run: |
|
||||||
~/env-pyodide/bin/pip install z3/src/api/python/dist/*.whl
|
~/env-pyodide/bin/pip install z3/src/api/python/dist/*.whl
|
||||||
~/env-pyodide/bin/python - <z3/src/api/python/z3test.py z3 && ~/env-pyodide/bin/python - <z3/src/api/python/z3test.py z3num
|
~/env-pyodide/bin/python - <src/api/python/z3test.py z3 && ~/env-pyodide/bin/python - <src/api/python/z3test.py z3num
|
||||||
|
|
Loading…
Reference in a new issue