Skip to content

Commit d247dbc

Browse files
committed
GHA aarch64: build on Alpine
To get a self-contained binary. [ci skip]
1 parent 7b3ec54 commit d247dbc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/test.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
if: ${{ github.event.inputs.inplinuxaarch64 == '' || github.event.inputs.inplinuxaarch64 == 'yes' }}
137137
runs-on: [linux-arm64]
138138
container:
139-
image: "ubuntu:24.04"
139+
image: "alpine:3.15"
140140
name: Linux build aaarch
141141
env:
142142
RUST_BACKTRACE: 1
@@ -150,11 +150,11 @@ jobs:
150150

151151
- name: Install build tools
152152
run: |
153-
apt-get update && apt-get install -y make curl gcc
154-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh && sh rust.sh -y
155-
curl -LO https://github.com/goreleaser/nfpm/releases/download/v2.40.0/nfpm_2.40.0_arm64.deb && \
156-
dpkg -i nfpm*.deb && \
157-
rm nfpm*.deb
153+
apk add curl linux-headers bash gcc musl-dev g++ pkgconf make file
154+
cd && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rust.sh && sh rust.sh -y
155+
curl -LO https://github.com/goreleaser/nfpm/releases/download/v2.32.0/nfpm_2.32.0_$(arch).apk
156+
apk add --allow-untrusted nfpm*.apk
157+
rm nfpm*.apk
158158
159159
- name: Build rig
160160
run: |

0 commit comments

Comments
 (0)