Skip to content

Commit

Permalink
Produce Linux ARM builds with GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitalquark committed Feb 22, 2025
1 parent 2186959 commit 1e6278c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04-arm
- os: windows-2019
qt: '6.7'
- os: macOS-13
Expand Down Expand Up @@ -209,11 +210,12 @@ jobs:
needs: [build, modules]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
exe: [textadept/textadept, textadept/textadept-curses]
include:
- os: ubuntu-latest
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest]
exe: [textadept/textadept, textadept/textadept-gtk, textadept/textadept-curses]
exclude:
- os: windows-latest
exe: textadept/textadept-gtk
include:
- os: macOS-latest
exe: Textadept.app/Contents/MacOS/textadept_osx
#- os: macOS-latest
Expand Down Expand Up @@ -243,9 +245,13 @@ jobs:
run: unzip textadept_*.macOS.zip

- name: Unpack Textadept (Linux)
if: runner.os == 'Linux'
if: runner.os == 'Linux' && !contains(matrix.os, 'arm')
run: tar xzf textadept_*.linux.tgz

- name: Unpack Textadept (Linux ARM)
if: runner.os == 'Linux' && contains(matrix.os, 'arm')
run: tar xzf textadept_*.linux.arm.tgz

- name: Unpack modules (Windows, Linux)
if: runner.os != 'macOS'
run: |
Expand Down
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,12 @@ if(NOT (WIN32 OR APPLE))
install(FILES core/images/textadept.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
# Note: can use file(ARCHIVE_CREATE) in CMake 3.18.
set(textadept_tgz textadept_${version}.tgz)
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^aarch")
set(textadept_tgz textadept_${version}.arm.tgz)
endif()
add_custom_target(archive
COMMAND ${CMAKE_COMMAND} -E tar czf ${CMAKE_BINARY_DIR}/textadept_${version}.tgz textadept
COMMAND ${CMAKE_COMMAND} -E tar czf ${CMAKE_BINARY_DIR}/${textadept_tgz} textadept
WORKING_DIRECTORY ${CMAKE_INSTALL_FULL_DATADIR})
elseif(WIN32)
set(ta_dir ${CMAKE_INSTALL_PREFIX}/textadept)
Expand Down

0 comments on commit 1e6278c

Please sign in to comment.