diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 294c914..90eaf02 100755 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -54,25 +54,31 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: taiki-e/install-action@v2 + with: + tool: cross@0.2.5 - 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/* @@ -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/* @@ -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/* diff --git a/CHANGELOG.md b/CHANGELOG.md index 000a122..23148eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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