Skip to content

Commit

Permalink
Merge pull request #38 from fpco/arm64-ci
Browse files Browse the repository at this point in the history
ARM64 binaries
  • Loading branch information
snoyberg authored Dec 10, 2024
2 parents 3d7abed + 42e8dd8 commit 048807b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
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

0 comments on commit 048807b

Please sign in to comment.