Skip to content

Commit dc1824c

Browse files
committed
arm64 support
1 parent 3bb7105 commit dc1824c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/build.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,35 @@ jobs:
4040
-D CMAKE_BUILD_TYPE=Release
4141
cmake --build build-amd64 --parallel --config Release
4242
43+
- name: Set up QEMU
44+
uses: docker/setup-qemu-action@v2
45+
with:
46+
platforms: arm64
47+
48+
- name: Set up Docker Buildx
49+
uses: docker/setup-buildx-action@v2
50+
51+
- name: Build for Linux arm64
52+
run: |
53+
sudo docker run \
54+
--rm \
55+
--platform linux/arm64 \
56+
-v /tmp/qt:/tmp/qt \
57+
-v `pwd`:/tmp/qtapp \
58+
arm64v8/ubuntu:22.04 \
59+
bash -c '
60+
cd /tmp/qtapp
61+
apt-get update -y
62+
apt-get install -y build-essential ninja-build patchelf libfuse2
63+
chmod +x /tmp/qt/'"$QT_VERSION"'/gcc_arm64/bin/qt-cmake
64+
/tmp/qt/'"$QT_VERSION"'/gcc_arm64/bin/qt-cmake \
65+
-S . \
66+
-B build-arm64 \
67+
-G Ninja \
68+
-D CMAKE_BUILD_TYPE=Release
69+
cmake --build build-arm64 --parallel --config Release
70+
'
71+
4372
- name: Publish build artifacts
4473
uses: marvinpinto/action-automatic-releases@latest
4574
with:

0 commit comments

Comments
 (0)