Skip to content

Commit 3320a7b

Browse files
committed
Update wasm for taskcluster too
1 parent dce7f24 commit 3320a7b

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

taskcluster/docker/wasm/Dockerfile

+8-11
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,32 @@
22
# License, v. 2.0. If a copy of the MPL was not distributed with this
33
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

5-
ARG DOCKER_IMAGE_PARENT=ubuntu:20.04
5+
ARG DOCKER_IMAGE_PARENT=ubuntu:22.04
66
FROM $DOCKER_IMAGE_PARENT
77

88
MAINTAINER Sebastian Streich <[email protected]>
99

10-
ARG QT_VERSION=6.2.4
10+
ARG QT_VERSION=6.6.3
1111

1212
VOLUME /builds/worker/checkouts
1313

1414
ENV CURL='curl --location --retry 5' \
1515
LANG='en_US.UTF-8' \
1616
TERM='dumb'
1717

18-
RUN apt-get -q update && apt-get install -y tzdata && apt-get install -y git ccache python3 python3-pip wget libglib2.0-0 ninja-build && \
18+
RUN apt-get -q update && apt-get install -y tzdata && \
19+
apt-get install -y git ccache python3 python3-pip wget libglib2.0-0 cmake ninja-build && \
1920
python3 -m pip install aqtinstall && \
2021
# qt6 for wasm needs the desktop linux installation
2122
python3 -m aqt install-qt -O /opt linux desktop ${QT_VERSION} gcc_64 && \
22-
python3 -m aqt install-qt -O /opt linux desktop ${QT_VERSION} wasm_32 -m qtwebsockets qt5compat && \
23+
python3 -m aqt install-qt -O /opt linux desktop ${QT_VERSION} wasm_singlethread -m qtwebsockets qt5compat && \
2324
cd /opt/ && \
2425
git clone https://github.com/emscripten-core/emsdk.git && \
2526
cd emsdk && \
26-
./emsdk install 2.0.14 && \
27-
./emsdk activate 2.0.14 && \
28-
wget https://github.com/Kitware/CMake/releases/download/v3.24.0-rc4/cmake-3.24.0-rc4-linux-x86_64.sh && \
29-
chmod +x cmake-3.24.0-rc4-linux-x86_64.sh && \
30-
mkdir /tmp/cmake && \
31-
./cmake-3.24.0-rc4-linux-x86_64.sh --skip-license --prefix=/tmp/cmake
27+
./emsdk install 3.1.37 && \
28+
./emsdk activate 3.1.37
3229

3330
ENV QTPATH=/opt/${QT_VERSION}/
3431
ENV EMSDKPATH=/opt/emsdk/
3532

36-
ENV PATH="/opt/${QT_VERSION}/gcc_64/bin:${PATH}:/tmp/cmake/bin"
33+
ENV PATH="/opt/${QT_VERSION}/gcc_64/bin:${PATH}"

taskcluster/scripts/build/wasm.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ git submodule update --init --depth 1
1414

1515
pip3 install -r requirements.txt
1616

17-
export PATH="$QTPATH/wasm_32/bin:$PATH"
17+
export PATH="$QTPATH/wasm_singlethread/bin:$PATH"
1818
mkdir build
19-
$QTPATH/wasm_32/bin/qt-cmake -S . -B build \
19+
$QTPATH/wasm_singlethread/bin/qt-cmake -S . -B build \
2020
-DCMAKE_BUILD_TYPE=MinSizeRel \
2121
-DQT_HOST_PATH=/$QTPATH/gcc_64 \
2222
-DQT_HOST_PATH_CMAKE_DIR=/$QTPATH/gcc_64/lib/cmake \

0 commit comments

Comments
 (0)