Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 binaries #38

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
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
16 changes: 11 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,31 @@ jobs:

steps:
- uses: actions/checkout@v2
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.79.0
components: clippy, rustfmt
targets: x86_64-unknown-linux-musl
targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-1.79.0-binary
- name: Install musl tools
run: sudo apt-get install -y musl-tools
- name: Build
- name: Build (x86)
run: |
cargo build --release --target x86_64-unknown-linux-musl
strip target/x86_64-unknown-linux-musl/release/amber
- name: Build (ARM64)
run: cross build --release --target aarch64-unknown-linux-musl
- name: Rename
run: |
mkdir artifacts
cp target/x86_64-unknown-linux-musl/release/amber artifacts/amber-x86_64-unknown-linux-musl
- uses: actions/upload-artifact@v2
cp target/aarch64-unknown-linux-musl/release/amber artifacts/amber-aarch64-unknown-linux-musl
- uses: actions/upload-artifact@v4
with:
name: binaries
path: artifacts/*
Expand Down Expand Up @@ -101,7 +107,7 @@ jobs:
run: |
mkdir artifacts
cp target/release/amber artifacts/amber-x86_64-apple-darwin
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: binaries
path: artifacts/*
Expand Down Expand Up @@ -130,7 +136,7 @@ jobs:
run: |
mkdir artifacts
cp target/release/amber.exe artifacts/amber-x86_64-pc-windows-gnu.exe
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: binaries
path: artifacts/*
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log for Amber

## 0.1.7 (2024-12-10)

* Add ARM64 static binary.

## 0.1.6 (2024-06-24)

* Upgrade rust toolchain to 1.79.0
Expand Down
Loading