From 0e9a9190de05a50cb74b39c14f2cb5882a209eab Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 31 Oct 2025 16:46:34 -0600 Subject: [PATCH 1/2] Add aarch64 Added a workflow step to build and upload the aarch64 wget binary. --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e011e8..057abc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,24 @@ jobs: with: name: wget path: /root/wget + build-aarch64: + name: Build the wget binary aarch64 + runs-on: ubuntu-latest + container: + image: ghcr.io/toltec-dev/base:v4.0 + steps: + - name: Checkout the Git repository + uses: actions/checkout@v4 + - name: Build the binary + run: | + source /opt/x-tools/switch-aarch64.sh + ./build + mv /root/wget /root/wget-aarch64 + - name: Store the resulting artifact + uses: actions/upload-artifact@v4 + with: + name: wget-aarch64 + path: /root/wget-aarch64 release: name: Publish the wget binary runs-on: ubuntu-latest @@ -32,6 +50,10 @@ jobs: uses: actions/download-artifact@v4 with: name: wget + - name: Fetch the built aarch64 binary + uses: actions/download-artifact@v4 + with: + name: wget-aarch64 - name: Transfer packages and index run: | mkdir -p private @@ -44,3 +66,7 @@ jobs: -i private/id_rsa \ -o UserKnownHostsFile=private/known_hosts \ wget "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-"$version" + scp -P "${{ secrets.SSH_PORT }}" \ + -i private/id_rsa \ + -o UserKnownHostsFile=private/known_hosts \ + wget-aarch64 "${{ secrets.REMOTE_SSH }}":/srv/toltec/thirdparty/bin/wget-aarch64-"$version" From f67fbd06a2c59c4f65bcee9d62797bb6b9714ec5 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 31 Oct 2025 16:54:02 -0600 Subject: [PATCH 2/2] Fix aarch64 build --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 057abc3..6ccf3e2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,8 +32,7 @@ jobs: uses: actions/checkout@v4 - name: Build the binary run: | - source /opt/x-tools/switch-aarch64.sh - ./build + bash -c 'source /opt/x-tools/switch-aarch64.sh; ./build' mv /root/wget /root/wget-aarch64 - name: Store the resulting artifact uses: actions/upload-artifact@v4