Skip to content

Commit 65984dd

Browse files
Enable ARM builds for Linux (#340)
1 parent a9ad818 commit 65984dd

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- '3.10'
3535
- '3.11'
3636
- '3.12'
37-
os: [ubuntu-latest, windows-latest, macos-latest]
37+
os: [ubuntu-latest, windows-latest, macos-latest, ubuntu-22.04-arm]
3838

3939
steps:
4040
- name: Checkout code

.github/workflows/manual.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
os: [ubuntu-latest, windows-latest, macos-13]
14+
os: [ubuntu-latest, windows-latest, macos-13, ubuntu-22.04-arm]
1515

1616
steps:
1717
- uses: actions/checkout@v2

pyinstaller/bundle.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,18 @@ pyinstaller \
2020

2121
# Travis stuff
2222
mkdir -p deploy
23+
ARCH=$(uname -m)
2324
if [ "$RUNNER_OS" = "Linux" ]; then
2425
./dist/etesync-dav --version # Sanity test on Linux and mac, can't do on windows
25-
mv dist/etesync-dav "deploy/linux-amd64-etesync-dav"
26+
if [ "$ARCH" = "x86_64" ]; then
27+
mv dist/etesync-dav "deploy/linux-amd64-etesync-dav"
28+
elif [ "$ARCH" = "aarch64" ]; then
29+
mv dist/etesync-dav "deploy/linux-arm64-etesync-dav"
30+
else
31+
echo "Unsupported architecture: $ARCH"
32+
exit 1
33+
fi
34+
2635
fi
2736
if [ "$RUNNER_OS" = "macOS" ]; then
2837
./dist/etesync-dav --version # Sanity test on Linux and mac, can't do on windows

0 commit comments

Comments
 (0)