Skip to content

Commit

Permalink
ci: try building arm on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Neverous committed Jan 29, 2025
1 parent acf92f4 commit f1d2b39
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
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
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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: Checkout source code
uses: actions/checkout@v4
Expand All @@ -54,7 +57,7 @@ jobs:
continue-on-error: true

- name: Set up Qt environment
uses: jurplel/install-qt-action@v4
uses: jdpurcell/install-qt-action@v4
with:
cache: true
version: ${{ matrix.qt-version }}
Expand All @@ -66,9 +69,13 @@ jobs:
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}
wget -c -nv https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${{ endsWith(inputs.os, 'arm') && 'aarch64' || 'x86_64' }}.AppImage -O ${DIR}/linuxdeploy.AppImage
wget -c -nv https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${{ endsWith(inputs.os, 'arm') && 'aarch64' || 'x86_64' }}.AppImage -O 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

0 comments on commit f1d2b39

Please sign in to comment.