Skip to content

Commit 0e9a919

Browse files
authored
Add aarch64
Added a workflow step to build and upload the aarch64 wget binary.
1 parent d8a4dfd commit 0e9a919

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@ jobs:
2222
with:
2323
name: wget
2424
path: /root/wget
25+
build-aarch64:
26+
name: Build the wget binary aarch64
27+
runs-on: ubuntu-latest
28+
container:
29+
image: ghcr.io/toltec-dev/base:v4.0
30+
steps:
31+
- name: Checkout the Git repository
32+
uses: actions/checkout@v4
33+
- name: Build the binary
34+
run: |
35+
source /opt/x-tools/switch-aarch64.sh
36+
./build
37+
mv /root/wget /root/wget-aarch64
38+
- name: Store the resulting artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: wget-aarch64
42+
path: /root/wget-aarch64
2543
release:
2644
name: Publish the wget binary
2745
runs-on: ubuntu-latest
@@ -32,6 +50,10 @@ jobs:
3250
uses: actions/download-artifact@v4
3351
with:
3452
name: wget
53+
- name: Fetch the built aarch64 binary
54+
uses: actions/download-artifact@v4
55+
with:
56+
name: wget-aarch64
3557
- name: Transfer packages and index
3658
run: |
3759
mkdir -p private
@@ -44,3 +66,7 @@ jobs:
4466
-i private/id_rsa \
4567
-o UserKnownHostsFile=private/known_hosts \
4668
wget "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-"$version"
69+
scp -P "${{ secrets.SSH_PORT }}" \
70+
-i private/id_rsa \
71+
-o UserKnownHostsFile=private/known_hosts \
72+
wget-aarch64 "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-aarch64-"$version"

0 commit comments

Comments
 (0)