diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 0000000..68aebd1 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -0,0 +1,52 @@ +name: wasm + +on: + push: + #schedule: + # - cron: '*/120 8-18 * * *' # every 2 hours from 8:00 to 18:00 every day + +jobs: + build: # the first job + # current job matrix. if modified, remember to UPDATE the strategy in the next job + strategy: + fail-fast: false + matrix: + os: [ubuntu-22.04] + + runs-on: ${{ matrix.os }} + + timeout-minutes: 30 + + steps: # job steps + - name: Check-out repository + uses: actions/checkout@v4 + + - name: Install emsdk + if: False + shell: bash + run: | + git clone https://github.com/emscripten-core/emsdk.git + cd emsdk + git pull + ./emsdk install 3.1.50 # this version is needed for Qt 6.7 + ./emsdk activate 3.1.50 + + - name: Install Qt for WebAssembly + shell: bash + run: | + curl --location --output https://qt-mirror.dannhauer.de/archive/online_installers/4.8/qt-online-installer-linux-arm64-4.8.0.run + ls -l + chmod u+x qt-online-installer-linux-arm64-4.8.0.run + # curl -L -O https://download.qt.io/official_releases/online_installers/qt-unified-linux-arm64-online.run + # ./qt-unified-linux-arm64-online.run \ + # --root /home/runner/Qt \ + # --accept-licenses \ + # --accept-obligations \ + # --default-answer \ + # --confirm-command \ + # install qt.qt6.672.wasm_singlethread qt.qt6.672.qt5compat + + - name: Install Qt for WebAssembly + shell: bash + run: | + ./qt-online-installer-linux-arm64-4.8.0.run