Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ 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: |
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
with:
name: wget-aarch64
path: /root/wget-aarch64
release:
name: Publish the wget binary
runs-on: ubuntu-latest
Expand All @@ -32,6 +49,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
Expand All @@ -44,3 +65,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"