Skip to content

Commit

Permalink
Merge pull request #179 from stepchowfun/aarch64-unknown-linux-musl
Browse files Browse the repository at this point in the history
Add support for AArch64 musl Linux
  • Loading branch information
stepchowfun committed Jun 2, 2023
2 parents 00d25a4 + e3552a4 commit 3661494
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ jobs:
name: aarch64-unknown-linux-gnu
path: artifacts/tagref
if-no-files-found: error
- run: |
# Make Bash not silently ignore errors.
set -euo pipefail
# The artifact name will contain the target triple, so the file name doesn't need to.
mv artifacts/tagref-aarch64-unknown-linux-musl artifacts/tagref
- uses: actions/upload-artifact@v2
with:
name: aarch64-unknown-linux-musl
path: artifacts/tagref
if-no-files-found: error
ci-windows:
name: Build for Windows
runs-on: windows-latest
Expand Down Expand Up @@ -176,6 +187,9 @@ jobs:
mv \
artifacts/aarch64-unknown-linux-gnu/tagref \
artifacts/tagref-aarch64-unknown-linux-gnu
mv \
artifacts/aarch64-unknown-linux-musl/tagref \
artifacts/tagref-aarch64-unknown-linux-musl
mv \
artifacts/x86_64-apple-darwin/tagref \
artifacts/tagref-x86_64-apple-darwin
Expand All @@ -193,6 +207,7 @@ jobs:
--attach 'artifacts/tagref-x86_64-unknown-linux-gnu' \
--attach 'artifacts/tagref-x86_64-unknown-linux-musl' \
--attach 'artifacts/tagref-aarch64-unknown-linux-gnu' \
--attach 'artifacts/tagref-aarch64-unknown-linux-musl' \
--attach 'artifacts/tagref-x86_64-apple-darwin' \
--attach 'artifacts/tagref-aarch64-apple-darwin' \
--attach 'artifacts/tagref-x86_64-pc-windows-msvc.exe' \
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.8.3] - 2023-06-02

### Added
- Tagref supports a new platform: AArch64 musl Linux.

## [1.8.2] - 2023-05-22

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tagref"
version = "1.8.2"
version = "1.8.3"
authors = ["Stephan Boyer <[email protected]>"]
edition = "2021"
description = "Tagref helps you maintain cross-references in your code."
Expand Down
6 changes: 6 additions & 0 deletions toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,19 @@ tasks:
rustup target add x86_64-unknown-linux-gnu
rustup target add x86_64-unknown-linux-musl
rustup target add aarch64-unknown-linux-gnu
rustup target add aarch64-unknown-linux-musl
# Set the linkers.
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-gnu-gcc
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
# Build the project with Cargo for each Linux target.
cargo-online build --release --target x86_64-unknown-linux-gnu
cargo-online build --release --target x86_64-unknown-linux-musl
cargo-online build --release --target aarch64-unknown-linux-gnu
cargo-online build --release --target aarch64-unknown-linux-musl
# Move the binaries to a more conveniennt location for exporting.
mkdir artifacts
Expand All @@ -226,6 +229,9 @@ tasks:
cp \
target/aarch64-unknown-linux-gnu/release/tagref \
artifacts/tagref-aarch64-unknown-linux-gnu
cp \
target/aarch64-unknown-linux-musl/release/tagref \
artifacts/tagref-aarch64-unknown-linux-musl
publish:
description: Publish the crate to crates.io.
Expand Down

0 comments on commit 3661494

Please sign in to comment.