File tree Expand file tree Collapse file tree 5 files changed +27
-13
lines changed
Expand file tree Collapse file tree 5 files changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ inputs:
3131 python-version :
3232 required : false
3333 description : ' '
34- default : ' 3.12'
34+ default : ' 3.13'
35+ emscripten-version :
36+ required : false
37+ description : ' '
38+ default : ' '
3539
3640outputs :
3741 cache-dir :
@@ -245,7 +249,11 @@ runs:
245249 run : |
246250
247251 pip install pyodide-build>=0.28.0
248- echo "EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)" >> $GITHUB_ENV
252+ if [[ "${{ inputs.emscripten-version }}" == "" ]]; then
253+ echo "EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)" >> $GITHUB_ENV
254+ else
255+ echo "EMSCRIPTEN_VERSION=${{ inputs.emscripten-version }}" >> $GITHUB_ENV
256+ fi
249257
250258 - name : Setup Emscripten
251259 if : inputs.target-arch == 'wasm32'
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124124 run : |
125125
126126 if [[ "${{ matrix.target-arch }}" == "wasm32" ]]; then
127- pip download mlir-wheel --plat pyodide_2024_0_wasm32 --no-deps --python-version 3.12 -f https://llvm.github.io/eudsl
127+ pip download mlir-wheel --plat pyodide_2025_0_wasm32 --no-deps --python-version 3.13 -f https://llvm.github.io/eudsl
128128 else
129129 pip download mlir-wheel -f https://llvm.github.io/eudsl
130130 fi
Original file line number Diff line number Diff line change @@ -49,11 +49,11 @@ jobs:
4949 - name : Setup Python
5050 uses : actions/setup-python@v5
5151 with :
52- python-version : ' 3.12 '
52+ python-version : ' 3.13 '
5353
5454 - name : Fetch latest WASM wheel
5555 run : |
56- pip download mlir-python-bindings --plat pyodide_2024_0_wasm32 --no-deps --python-version 3.12 -f https://llvm.github.io/eudsl
56+ pip download mlir-python-bindings --plat pyodide_2025_0_wasm32 --no-deps --python-version 3.13 -f https://llvm.github.io/eudsl
5757 echo "MLIR_PYTHON_WHEEL_NAME=$(ls mlir_python_bindings*)" >> $GITHUB_ENV
5858 pip wheel eudsl-python-extras -f https://llvm.github.io/eudsl --no-deps -w .
5959 echo "EUDSL_PYTHON_EXTRAS_WHEEL_NAME=$(ls eudsl_python_extras*)" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -2,16 +2,19 @@ FROM ubuntu
22
33ENV DEBIAN_FRONTEND=noninteractive
44
5- RUN apt-get update && apt-get -y install python-is-python3 cmake ninja-build python3.12-venv python3-pip vim git unzip
5+ RUN apt-get update && apt-get -y install python-is-python3 cmake ninja-build python3-pip vim git unzip software-properties-common
6+
7+ RUN add-apt-repository -y ppa:deadsnakes/ppa && apt update && apt -y install python3.13 python3.13-venv
8+ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.13 99
69
710RUN python -m venv venv
8- RUN /venv/bin/python -m pip install pip-tools pyodide-build
11+ RUN /venv/bin/python -m pip install pip-tools pyodide-build==0.30.9
912RUN echo 'source "/venv/bin/activate"' >> $HOME/.bashrc
1013
1114RUN git clone https://github.com/emscripten-core/emsdk.git
1215# EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version)
1316RUN cd emsdk && \
14- ./emsdk install 3.1.58 ccache-git-emscripten-64bit && \
15- ./emsdk activate 3.1.58 ccache-git-emscripten-64bit && \
17+ ./emsdk install 4.0.9 ccache-git-emscripten-64bit && \
18+ ./emsdk activate 4.0.9 ccache-git-emscripten-64bit && \
1619 cd ..
1720RUN echo 'source "/emsdk/emsdk_env.sh"' >> $HOME/.bashrc
Original file line number Diff line number Diff line change @@ -45,10 +45,13 @@ cmake.args = ["-C", "llvm_wasm_cache.cmake"]
4545CMAKE_BUILD_TYPE = { env = " CMAKE_BUILD_TYPE" , default = " Release" }
4646CMAKE_C_COMPILER_LAUNCHER = { env = " CMAKE_C_COMPILER_LAUNCHER" , default = " " }
4747CMAKE_CXX_COMPILER_LAUNCHER = { env = " CMAKE_CXX_COMPILER_LAUNCHER" , default = " " }
48- CMAKE_CXX_FLAGS = " -sNO_DISABLE_EXCEPTION_CATCHING"
49- CMAKE_EXE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
50- CMAKE_SHARED_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
51- CMAKE_MODULE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
48+ # CMAKE_CXX_FLAGS = "-sNO_DISABLE_EXCEPTION_CATCHING"
49+ # CMAKE_EXE_LINKER_FLAGS = "-sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
50+ # CMAKE_SHARED_LINKER_FLAGS = "-sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
51+ # CMAKE_MODULE_LINKER_FLAGS = "-sALLOW_TABLE_GROWTH -sASSERTIONS -sNO_DISABLE_EXCEPTION_CATCHING -sWASM_BIGINT"
52+ CMAKE_EXE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
53+ CMAKE_SHARED_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
54+ CMAKE_MODULE_LINKER_FLAGS = " -sALLOW_TABLE_GROWTH -sASSERTIONS -sWASM_BIGINT"
5255CMAKE_VERBOSE_MAKEFILE = " ON"
5356
5457LLVM_ENABLE_EH = " ON"
You can’t perform that action at this time.
0 commit comments