Skip to content

Commit f454cc7

Browse files
committed
gha: build - test ubuntu on ARM (apt Qt install)
1 parent 283df25 commit f454cc7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
strategy:
4747
fail-fast: false
4848
matrix:
49-
os: [macos-13, ubuntu-latest, ubuntu-20.04, windows-latest]
49+
os: [macos-13, ubuntu-latest, ubuntu-20.04, ubuntu-24.04-arm, windows-latest]
5050

5151
steps:
5252

@@ -105,7 +105,8 @@ jobs:
105105
# run: |
106106
# echo "OPENIA_CMAKE_OPTIONS=${{env.OPENIA_CMAKE_OPTIONS}} -DOpenMP_CXX_FLAGS=\"-Xpreprocessor -fopenmp -lomp\" -DOpenMP_CXX_INCLUDE_DIR=\"/opt/homebrew/opt/libomp/include\" -DOpenMP_libomp_LIBRARY=\"/opt/homebrew/opt/libomp/lib/libomp.dylib\"" >> "$GITHUB_ENV"
107107

108-
- name: Qt install
108+
- if: matrix.os != 'ubuntu-24.04-arm'
109+
name: Qt install
109110
# see https://github.com/marketplace/actions/install-qt for details
110111
uses: jurplel/install-qt-action@v4
111112
with:
@@ -115,6 +116,12 @@ jobs:
115116
cache: true
116117
cache-key-prefix: Qt
117118

119+
- if: matrix.os != 'ubuntu-24.04-arm'
120+
name: Qt: install (Ubuntu ARM)
121+
run: |
122+
sudo apt update && sudo apt install libgl1-mesa-dev libxt-dev libxt-dev libxcursor-dev libsdl2-dev qt6-base-dev qt6-tools-dev qt6-svg-dev
123+
echo "QT_VERSION=$(/usr/bin/dpkg -s qt6-base-dev | /usr/bin/grep 'Version' | /usr/bin/awk '{ split($2, a, "+"); print a[1]; }')" >> "$GITHUB_ENV"
124+
118125
##################################################################
119126
# VR: OpenXR, OpenVR, boost
120127

0 commit comments

Comments
 (0)