Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: try building arm on linux #377

Merged
merged 1 commit into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/asset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
exclude:
- qt-version: ${{ inputs.compiler == 'MSVC32' && '6.2.4' || 'none' }}
- qt-version: ${{ inputs.compiler == 'MSVC32' && '6.8.1' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '5.12.12' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '5.15.2' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '6.2.4' || 'none' }}
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down
16 changes: 12 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
exclude:
- qt-version: ${{ inputs.compiler == 'MSVC32' && '6.2.4' || 'none' }}
- qt-version: ${{ inputs.compiler == 'MSVC32' && '6.8.1' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '5.12.12' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '5.15.2' || 'none' }}
- qt-version: ${{ endsWith(inputs.os, 'arm') && '6.2.4' || 'none' }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -54,7 +57,7 @@
continue-on-error: true

- name: Set up Qt environment
uses: jurplel/install-qt-action@v4
uses: jdpurcell/install-qt-action@v4

Check warning

Code scanning / Semgrep (reported by Codacy)

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Warning

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release.
with:
cache: true
version: ${{ matrix.qt-version }}
Expand All @@ -66,9 +69,14 @@
if: startsWith(inputs.os, 'ubuntu')

- name: Install linuxdeploy
uses: miurahr/install-linuxdeploy-action@v1
with:
plugins: qt
run: |
DIR=$(mktemp -d)
echo "${DIR}" >> ${GITHUB_PATH}
ARCH=${{ endsWith(inputs.os, 'arm') && 'aarch64' || 'x86_64' }}
wget -c -nv https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${ARCH}.AppImage -O ${DIR}/linuxdeploy.AppImage
wget -c -nv https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${ARCH}.AppImage -O ${DIR}/linuxdeploy-plugin-qt.AppImage
chmod +x ${DIR}/*.AppImage
shell: bash
if: startsWith(inputs.os, 'ubuntu')

- name: Install efivar
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
compiler:
- Clang
- GCC
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
compiler:
- Clang
- GCC
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
compiler:
- Clang
- GCC
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ elseif(APPLE)
)
else()
if(NOT LINUXDEPLOY_EXECUTABLE)
find_program(LINUXDEPLOY_EXECUTABLE NAMES linuxdeploy linuxdeploy-x86_64.AppImage)
find_program(LINUXDEPLOY_EXECUTABLE NAMES linuxdeploy linuxdeploy.AppImage linuxdeploy-x86_64.AppImage linuxdeploy-aarch64.AppImage)
endif()

if(LINUXDEPLOY_EXECUTABLE)
Expand Down
Loading