Skip to content

Commit

Permalink
Workaround for missing WASM linguist tools
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Mar 15, 2022
1 parent 4666266 commit eaebbb2
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
wasmQt6:
name: Wasm Qt6
runs-on: ubuntu-20.04
env:
QTVERSION: 6.2.3

steps:
- name: Clone repository
Expand All @@ -31,15 +33,17 @@ jobs:
run: |
python3 -m pip install aqtinstall
# qt6.2.3 for wasm needs the desktop linux installation
python3 -m aqt install-qt -O /opt linux desktop 6.2.3
python3 -m aqt install-qt -O /opt linux desktop 6.2.3 wasm_32 -m qtcharts qtwebsockets qt5compat
python3 -m aqt install-qt -O /opt linux desktop $QTVERSION
python3 -m aqt install-qt -O /opt linux desktop $QTVERSION wasm_32 -m qtcharts qtwebsockets qt5compat
- name: Patching Qt
shell: bash
run: |
# see: https://wiki.qt.io/Qt_6.2_Known_Issues#WebAssembly
sed '/sse/,+5 d' /opt/6.2.3/wasm_32/mkspecs/features/wasm/wasm.prf > /tmp/wasm.prf
mv /tmp/wasm.prf /opt/6.2.3/wasm_32/mkspecs/features/wasm/wasm.prf
sed '/sse/,+5 d' /opt/$QTVERSION/wasm_32/mkspecs/features/wasm/wasm.prf > /tmp/wasm.prf
mv /tmp/wasm.prf /opt/$QTVERSION/wasm_32/mkspecs/features/wasm/wasm.prf
ln -s /opt/$QTVERSION/gcc_64/bin/lconvert /opt/$QTVERSION/wasm_32/bin/
ln -s /opt/$QTVERSION/gcc_64/bin/lupdate /opt/$QTVERSION/wasm_32/bin/
- name: Install python dependencies
shell: bash
Expand All @@ -52,7 +56,7 @@ jobs:
- name: Compiling
shell: bash
run: |
export PATH=/opt/6.2.3/wasm_32/bin:/opt/6.2.3/gcc_64/bin:$PATH
export PATH=/opt/$QTVERSION/wasm_32/bin:/opt/$QTVERSION/gcc_64/bin:$PATH
./scripts/wasm/compile.sh
- name: Uploading
Expand Down

0 comments on commit eaebbb2

Please sign in to comment.