Skip to content

Commit 68d50c8

Browse files
committed
added wasm workflow to CI
1 parent e33580a commit 68d50c8

File tree

13 files changed

+250
-10
lines changed

13 files changed

+250
-10
lines changed

.github/workflows/build_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Build: Linux'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66
inputs:
77
platforms:

.github/workflows/build_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Build: macOS'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66
inputs:
77
build_mode:

.github/workflows/build_wasm.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: 'Build: Wasm'
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
inputs:
7+
build_mode:
8+
description: 'Build mode: devel, nightly, testing, stable'
9+
default: 'devel'
10+
required: true
11+
workflow_call:
12+
inputs:
13+
build_mode:
14+
description: 'Build mode: devel, nightly, testing, stable'
15+
default: 'devel'
16+
type: string
17+
required: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-24.04
22+
steps:
23+
- name: Cancel Previous Runs
24+
uses: styfle/cancel-workflow-action@0.12.1
25+
with:
26+
access_token: ${{ github.token }}
27+
- name: Clone repository
28+
uses: actions/checkout@v4
29+
- name: Configure workflow
30+
env:
31+
pull_request_title: ${{ github.event.pull_request.title }}
32+
run: |
33+
bash ./buildscripts/ci/tools/make_build_mode_env.sh -e ${{ github.event_name }} -m ${{ inputs.build_mode }}
34+
BUILD_MODE=$(cat ./build.artifacts/env/build_mode.env)
35+
36+
bash ./buildscripts/ci/tools/make_build_number.sh
37+
BUILD_NUMBER=$(cat ./build.artifacts/env/build_number.env)
38+
39+
ADD_INFO="_${GITHUB_REF#refs/heads/}"
40+
if [ "${{ github.event_name }}" == "pull_request" ]; then
41+
ADD_INFO="_${{ github.event.pull_request.number }}_${pull_request_title}"
42+
fi
43+
UPLOAD_ARTIFACT_NAME="$(tr '":<>|*?/\\’' '_' <<<"MU4_${BUILD_NUMBER}_Wasm${ADD_INFO}")"
44+
45+
echo "github.repository: ${{ github.repository }}"
46+
echo "BUILD_MODE=$BUILD_MODE" | tee -a $GITHUB_ENV
47+
echo "BUILD_NUMBER=$BUILD_NUMBER" | tee -a $GITHUB_ENV
48+
echo "UPLOAD_ARTIFACT_NAME=$UPLOAD_ARTIFACT_NAME" | tee -a $GITHUB_ENV
49+
50+
echo "CCACHE_TIMESTAMP=$(date -u +"%F-%T")" | tee -a $GITHUB_ENV
51+
52+
- name: Restore ccache files
53+
uses: actions/cache@v4
54+
with:
55+
path: ${{ github.workspace }}/.ccache
56+
key: wasm-ccache-${{ env.CCACHE_TIMESTAMP }}
57+
restore-keys: wasm-ccache-
58+
- name: Setup ccache
59+
run: |
60+
sudo apt-get update && sudo apt-get install -y ccache
61+
bash ./buildscripts/ci/tools/setup_ccache_config.sh
62+
63+
- name: Register gcc problem matcher
64+
run: echo "::add-matcher::.github/problem_matchers/gcc.json"
65+
66+
- name: Install Qt
67+
uses: jurplel/install-qt-action@v4
68+
with:
69+
version: '6.9.1'
70+
host: all_os
71+
target: 'wasm'
72+
arch: wasm_singlethread
73+
modules: 'qt5compat qtscxml qtshadertools'
74+
75+
- name: Setup environment
76+
run: |
77+
bash ./buildscripts/ci/linux/setup.sh --arch wasm
78+
- name: Build
79+
env:
80+
CMAKE_PREFIX_PATH: ${{env.QT_ROOT_DIR}}
81+
run: |
82+
bash ./buildscripts/ci/wasm/build.sh -n ${{ env.BUILD_NUMBER }}
83+
echo "============== ccache ==============="
84+
ccache -sv
85+
- name: Package
86+
run: |
87+
bash ./buildscripts/ci/wasm/package.sh
88+
- name: Upload artifacts on GitHub
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: ${{ env.UPLOAD_ARTIFACT_NAME }}
92+
path: ./build.artifacts/

.github/workflows/build_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Build: Windows'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66
inputs:
77
platforms:

.github/workflows/build_without_qt.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: 'Build: Without Qt'
22

33
on:
4-
pull_request:
4+
#pull_request:
5+
workflow_dispatch:
56

67
jobs:
78
run_tests:

.github/workflows/check_codestyle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Check: Codestyle'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66

77
jobs:

.github/workflows/check_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Check: Unit Tests (utest)'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66
inputs:
77
code_coverage:

.github/workflows/check_visual_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: 'Check: Visual Tests (vtest)'
22

33
on:
4-
pull_request:
4+
#pull_request:
55
workflow_dispatch:
66
inputs:
77
use_qt69:

aqtinstall.log

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2025-06-09 17:00:14,757 - aqt.metadata - DEBUG - metadata 138336167510144 Connection to 'https://download.qt.io' failed. Retrying with fallback 'https://ftp.fau.de/qtproject/'.
2+
2025-06-09 17:01:11,802 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
3+
2025-06-09 17:01:38,285 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
4+
2025-06-09 17:02:02,346 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
5+
2025-06-09 17:02:26,400 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
6+
2025-06-09 17:02:50,462 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
7+
2025-06-09 17:03:14,518 - aqt.metadata - DEBUG - metadata 132679113207936 Failed to download checksum for the file 'Updates.xml' from mirrors '['https://download.qt.io']
8+
2025-06-09 17:03:14,518 - aqt.metadata - DEBUG - metadata 132679113207936 Failed to retrieve arches list with extension `wasm_singlethread`. Please check that this extension exists for this version of Qt: if not, code changes will be necessary.
9+
2025-06-09 17:03:14,519 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
10+
2025-06-09 17:03:38,575 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
11+
2025-06-09 17:04:02,698 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
12+
2025-06-09 17:04:26,756 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
13+
2025-06-09 17:04:50,817 - aqt.helper - DEBUG - helper 132679113207936 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
14+
2025-06-09 17:05:04,770 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
15+
2025-06-09 17:05:28,831 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
16+
2025-06-09 17:05:52,892 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
17+
2025-06-09 17:06:16,947 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
18+
2025-06-09 17:06:41,024 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
19+
2025-06-09 17:07:05,083 - aqt.metadata - DEBUG - metadata 128413285195904 Failed to download checksum for the file 'Updates.xml' from mirrors '['https://download.qt.io']
20+
2025-06-09 17:07:05,083 - aqt.metadata - DEBUG - metadata 128413285195904 Failed to retrieve arches list with extension `wasm_singlethread`. Please check that this extension exists for this version of Qt: if not, code changes will be necessary.
21+
2025-06-09 17:07:05,083 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
22+
2025-06-09 17:07:29,136 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
23+
2025-06-09 17:07:53,204 - aqt.helper - DEBUG - helper 128413285195904 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256
24+
2025-06-09 17:08:06,299 - aqt.helper - DEBUG - helper 136089957019776 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_691/qt6_691_wasm_singlethread/Updates.xml.sha256
25+
2025-06-09 17:08:44,099 - aqt.helper - DEBUG - helper 126385399951488 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_691/qt6_691_wasm_singlethread/Updates.xml.sha256
26+
2025-06-09 17:08:48,030 - aqt.helper - DEBUG - helper 126385399951488 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_691/qt6_691_wasm_multithread/Updates.xml.sha256
27+
2025-06-09 17:08:56,430 - aqt.helper - DEBUG - helper 140443871215744 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_singlethread/Updates.xml.sha256
28+
2025-06-09 17:08:58,805 - aqt.helper - DEBUG - helper 140443871215744 Attempt to download checksum at https://download.qt.io/online/qtsdkrepository/all_os/wasm/qt6_690/qt6_690_wasm_multithread/Updates.xml.sha256

buildscripts/ci/linux/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ df -h .
2828
BUILD_TOOLS=$HOME/build_tools
2929
ARTIFACTS_DIR=build.artifacts
3030
CRASH_REPORT_URL=""
31+
BUILD_NUMBER=""
3132
BUILD_MODE=""
3233
SUFFIX="" # appended to `mscore` command name to avoid conflicts (e.g. `mscoredev`)
3334

0 commit comments

Comments
 (0)