Skip to content

Commit

Permalink
Build a Linux binary for ARM processors in GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Oct 11, 2024
1 parent 997e5e1 commit 57a1df9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
binary_name: linux-amd64,
os: ubuntu-latest,
}
- {
target: aarch64-unknown-linux-gnu,
binary_name: linux-aarch64,
os: self-hosted,
}
- {
target: x86_64-apple-darwin,
binary_name: darwin-amd64,
Expand All @@ -34,7 +39,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev
if: matrix.job.os == 'ubuntu-latest'
if: matrix.job.os == 'ubuntu-latest' || matrix.job.os == 'self-hosted'
- name: Cache Rust dependencies
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -193,6 +198,9 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: litra_${{ steps.sanitise_ref.outputs.value }}_linux-amd64
- uses: actions/download-artifact@v4
with:
name: litra_${{ steps.sanitise_ref.outputs.value }}_linux-aarch64
- uses: actions/download-artifact@v4
with:
name: litra_${{ steps.sanitise_ref.outputs.value }}_darwin-amd64
Expand All @@ -213,6 +221,7 @@ jobs:
litra_${{ steps.sanitise_ref.outputs.value }}_darwin-amd64
litra_${{ steps.sanitise_ref.outputs.value }}_darwin-arm64
litra_${{ steps.sanitise_ref.outputs.value }}_linux-amd64
litra_${{ steps.sanitise_ref.outputs.value }}_linux-aarch64
litra_${{ steps.sanitise_ref.outputs.value }}_darwin-universal
publish_on_homebrew:
name: Publish release on Homebrew
Expand Down

0 comments on commit 57a1df9

Please sign in to comment.