2 Commits
Author SHA1 Message Date
Luke Street 753cd9bb34 Test GitHub Actions aarch64 2022-07-11 17:58:16 -04:00
Luke Street 8ebd3ac900 Support for armhf/aarch64 2022-07-11 17:56:04 -04:00
2 changed files with 36 additions and 1 deletions
+31
View File
@@ -48,11 +48,42 @@ jobs:
name: AppImage i386
path: linuxdeploy-plugin-appimage*.AppImage*
appimage-aarch64:
name: AppImage aarch64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.1.0
with:
submodules: recursive
- name: Build AppImage
uses: uraimo/run-on-arch-action@v2.0.5
with:
arch: aarch64
distro: ubuntu18.04
githubToken: ${{ github.token }}
dockerRunArgs: |
--volume "${PWD}:/build"
install: |
apt update
apt install -y build-essential wget
wget -q -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-Linux-$(uname -m).sh
sh cmake-install.sh --prefix=/usr --skip-license --exclude-subdir
rm cmake-install.sh
run: |
cd /build
ARCH=$(uname -m) ci/build-appimage.sh
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: AppImage aarch64
path: linuxdeploy-plugin-appimage*.AppImage*
upload:
name: Create release and upload artifacts
needs:
- appimage-x86_64
- appimage-i386
- appimage-aarch64
runs-on: ubuntu-latest
steps:
- name: Download artifacts
+5 -1
View File
@@ -30,6 +30,10 @@ if [ "$ARCH" == "x86_64" ]; then
EXTRA_CMAKE_ARGS=()
elif [ "$ARCH" == "i386" ]; then
EXTRA_CMAKE_ARGS=("-DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT/cmake/toolchains/i386-linux-gnu.cmake")
elif [ "$ARCH" == "armhf" ]; then
EXTRA_CMAKE_ARGS=()
elif [ "$ARCH" == "aarch64" ]; then
EXTRA_CMAKE_ARGS=()
else
echo "Architecture not supported: $ARCH" 1>&2
exit 1
@@ -44,7 +48,7 @@ make install DESTDIR=AppDir
AIK_ARCH="$ARCH"
[ "$ARCH" == "i386" ] && AIK_ARCH="i686"
wget https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-"$ARCH".AppImage
wget https://github.com/encounter/linuxdeploy/releases/download/continuous/linuxdeploy-"$ARCH".AppImage
chmod +x linuxdeploy-"$ARCH".AppImage
# bundle appimagetool