Skip to content

Commit 69b0bc0

Browse files
committed
Add support for ARM architectures
1 parent 352d963 commit 69b0bc0

File tree

4 files changed

+14
-23
lines changed

4 files changed

+14
-23
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
ARCH: [x86_64, i386]
16+
ARCH: [x86_64, i386, aarch64, armhf]
1717

1818
name: AppImage ${{ matrix.ARCH }}
1919
runs-on: ubuntu-20.04

ci/build-appimage.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ OLD_CWD=$(readlink -f .)
2525

2626
pushd "$BUILD_DIR"
2727

28-
if [ "$ARCH" == "x86_64" ]; then
29-
EXTRA_CMAKE_ARGS=()
30-
elif [ "$ARCH" == "i386" ]; then
31-
EXTRA_CMAKE_ARGS=("-DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT/cmake/toolchains/i386-linux-gnu.cmake")
32-
else
33-
echo "Architecture not supported: $ARCH" 1>&2
34-
exit 1
35-
fi
36-
37-
cmake "$REPO_ROOT" -DCMAKE_INSTALL_PREFIX=/usr -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo "${EXTRA_CMAKE_ARGS[@]}"
28+
case "$ARCH" in
29+
x86_64|i386|aarch64|armhf)
30+
;;
31+
*)
32+
echo "Architecture not supported: $ARCH" 1>&2
33+
exit 1
34+
;;
35+
esac
36+
37+
cmake "$REPO_ROOT" -DCMAKE_INSTALL_PREFIX=/usr -DUSE_CCACHE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo
3838

3939
make -j$(nproc)
4040

ci/build-in-docker.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,15 @@ fi
99

1010
case "$ARCH" in
1111
x86_64)
12-
image_prefix=amd64
1312
platform=linux/amd64
1413
;;
1514
i386)
16-
image_prefix=i386
1715
platform=linux/i386
1816
;;
1917
armhf)
20-
image_prefix=arm32v7
2118
platform=linux/arm/v7
2219
;;
2320
aarch64)
24-
image_prefix=arm64v8
2521
platform=linux/arm64/v8
2622
;;
2723
*)
@@ -30,7 +26,7 @@ case "$ARCH" in
3026
;;
3127
esac
3228

33-
image="$image_prefix"/debian:stable
29+
image=debian:stable
3430

3531
repo_root="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")"/..)"
3632

@@ -40,7 +36,7 @@ repo_root="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")"/..)"
4036
uid="$(id -u)"
4137

4238
# make sure Docker image is up to date
43-
docker pull "$image"
39+
docker pull --platform "$platform" "$image"
4440

4541
docker run \
4642
--platform "$platform" \
@@ -59,7 +55,7 @@ docker run \
5955
<<\EOF
6056
6157
apt-get update
62-
apt-get install -y gcc g++ cmake git wget file curl
58+
apt-get install -y gcc g++ cmake git wget file curl ninja-build
6359
6460
bash -euxo pipefail ci/build-appimage.sh
6561

cmake/toolchains/i386-linux-gnu.cmake

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)