Skip to content

Commit

Permalink
arm64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
omergoktas committed Nov 20, 2024
1 parent 3bb7105 commit 4740a33
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,35 @@ jobs:
-D CMAKE_BUILD_TYPE=Release
cmake --build build-amd64 --parallel --config Release
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build for Linux arm64
run: |
sudo docker run \
--rm \
--platform linux/arm64 \
-v /tmp/qt:/tmp/qt \
-v `pwd`:/tmp/qtapp \
arm64v8/ubuntu:22.04 \
bash -c '
cd /tmp/qtapp
apt-get update -y
apt-get install -y build-essential cmake ninja-build patchelf libfuse2
chmod +x /tmp/qt/'"$QT_VERSION"'/gcc_arm64/bin/qt-cmake
/tmp/qt/'"$QT_VERSION"'/gcc_arm64/bin/qt-cmake \
-S . \
-B build-arm64 \
-G Ninja \
-D CMAKE_BUILD_TYPE=Release
cmake --build build-arm64 --parallel --config Release
'
- name: Publish build artifacts
uses: marvinpinto/action-automatic-releases@latest
with:
Expand Down

0 comments on commit 4740a33

Please sign in to comment.