Skip to content

Commit 3bb7105

Browse files
committed
Update build script
1 parent 23ba08c commit 3bb7105

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Automated Builds
22

3+
env:
4+
QT_VERSION: '6.7.3'
5+
36
on:
47
push:
58
branches: [ "master" ]
@@ -10,7 +13,7 @@ on:
1013

1114
jobs:
1215
build:
13-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-22.04
1417

1518
steps:
1619
- name: Download source codes
@@ -19,19 +22,23 @@ jobs:
1922
- name: Install dependencies
2023
run: |
2124
sudo apt-get update -y
22-
sudo apt-get install -y build-essential patchelf libfuse2
25+
sudo apt-get install -y build-essential ninja-build patchelf libfuse2
26+
pip install aqtinstall
2327
2428
- name: Install Qt
25-
uses: jurplel/install-qt-action@v3
26-
with:
27-
version: '6.5.0'
28-
cache: 'true'
29-
install-deps: 'false'
29+
run: |
30+
python3 -m aqt install-qt linux desktop $QT_VERSION linux_gcc_64 -O /tmp/qt -m $QT_MODULES
31+
python3 -m aqt install-qt linux_arm64 desktop $QT_VERSION linux_gcc_arm64 -O /tmp/qt -m $QT_MODULES
3032
31-
- name: Build the project
33+
- name: Build for amd64
3234
run: |
33-
cmake -S . -B build
34-
cmake --build build --parallel --config Release
35+
chmod +x /tmp/qt/$QT_VERSION/gcc_64/bin/qt-cmake
36+
/tmp/qt/$QT_VERSION/gcc_64/bin/qt-cmake \
37+
-S . \
38+
-B build-amd64 \
39+
-G Ninja \
40+
-D CMAKE_BUILD_TYPE=Release
41+
cmake --build build-amd64 --parallel --config Release
3542
3643
- name: Publish build artifacts
3744
uses: marvinpinto/action-automatic-releases@latest

0 commit comments

Comments
 (0)