Skip to content

Commit 903d3fe

Browse files
authored
Merge pull request #5 from toltec-dev/Eeems-patch-1
Add aarch64
2 parents d8a4dfd + f67fbd0 commit 903d3fe

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,23 @@ 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+
bash -c 'source /opt/x-tools/switch-aarch64.sh; ./build'
36+
mv /root/wget /root/wget-aarch64
37+
- name: Store the resulting artifact
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: wget-aarch64
41+
path: /root/wget-aarch64
2542
release:
2643
name: Publish the wget binary
2744
runs-on: ubuntu-latest
@@ -32,6 +49,10 @@ jobs:
3249
uses: actions/download-artifact@v4
3350
with:
3451
name: wget
52+
- name: Fetch the built aarch64 binary
53+
uses: actions/download-artifact@v4
54+
with:
55+
name: wget-aarch64
3556
- name: Transfer packages and index
3657
run: |
3758
mkdir -p private
@@ -44,3 +65,7 @@ jobs:
4465
-i private/id_rsa \
4566
-o UserKnownHostsFile=private/known_hosts \
4667
wget "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-"$version"
68+
scp -P "${{ secrets.SSH_PORT }}" \
69+
-i private/id_rsa \
70+
-o UserKnownHostsFile=private/known_hosts \
71+
wget-aarch64 "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-aarch64-"$version"

0 commit comments

Comments
 (0)