Skip to content

Commit 233ac9c

Browse files
authored
Merge pull request #108 from stepchowfun/aarch64-unknown-linux-musl
Add support for AArch64 musl Linux
2 parents eb90ee4 + e2436dc commit 233ac9c

File tree

5 files changed

+29
-2
lines changed

5 files changed

+29
-2
lines changed

Diff for: .github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,25 @@ jobs:
4444
- run: |
4545
# Make Bash not silently ignore errors.
4646
set -euo pipefail
47+
4748
# The artifact name will contain the target triple, so the file name doesn't need to.
4849
mv artifacts/paxos-aarch64-unknown-linux-gnu artifacts/paxos
4950
- uses: actions/upload-artifact@v2
5051
with:
5152
name: aarch64-unknown-linux-gnu
5253
path: artifacts/paxos
5354
if-no-files-found: error
55+
- run: |
56+
# Make Bash not silently ignore errors.
57+
set -euo pipefail
58+
59+
# The artifact name will contain the target triple, so the file name doesn't need to.
60+
mv artifacts/paxos-aarch64-unknown-linux-musl artifacts/paxos
61+
- uses: actions/upload-artifact@v2
62+
with:
63+
name: aarch64-unknown-linux-musl
64+
path: artifacts/paxos
65+
if-no-files-found: error
5466
ci-windows:
5567
name: Build for Windows
5668
runs-on: windows-latest
@@ -175,6 +187,9 @@ jobs:
175187
mv \
176188
artifacts/aarch64-unknown-linux-gnu/paxos \
177189
artifacts/paxos-aarch64-unknown-linux-gnu
190+
mv \
191+
artifacts/aarch64-unknown-linux-musl/paxos \
192+
artifacts/paxos-aarch64-unknown-linux-musl
178193
mv \
179194
artifacts/x86_64-apple-darwin/paxos \
180195
artifacts/paxos-x86_64-apple-darwin
@@ -192,6 +207,7 @@ jobs:
192207
--attach 'artifacts/paxos-x86_64-unknown-linux-gnu' \
193208
--attach 'artifacts/paxos-x86_64-unknown-linux-musl' \
194209
--attach 'artifacts/paxos-aarch64-unknown-linux-gnu' \
210+
--attach 'artifacts/paxos-aarch64-unknown-linux-musl' \
195211
--attach 'artifacts/paxos-x86_64-apple-darwin' \
196212
--attach 'artifacts/paxos-aarch64-apple-darwin' \
197213
--attach 'artifacts/paxos-x86_64-pc-windows-msvc.exe' \

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.3] - 2023-06-02
9+
10+
### Added
11+
- Paxos supports a new platform: AArch64 musl Linux.
12+
813
## [1.0.2] - 2023-05-23
914

1015
### Added

Diff for: Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "paxos"
3-
version = "1.0.2"
3+
version = "1.0.3"
44
authors = ["Stephan Boyer <[email protected]>"]
55
edition = "2021"
66
description = "An implementation of single-decree Paxos."

Diff for: toast.yml

+6
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,19 @@ tasks:
205205
rustup target add x86_64-unknown-linux-gnu
206206
rustup target add x86_64-unknown-linux-musl
207207
rustup target add aarch64-unknown-linux-gnu
208+
rustup target add aarch64-unknown-linux-musl
208209
209210
# Set the linkers.
210211
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc
211212
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=x86_64-linux-gnu-gcc
212213
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
214+
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc
213215
214216
# Build the project with Cargo for each Linux target.
215217
cargo-online build --release --target x86_64-unknown-linux-gnu
216218
cargo-online build --release --target x86_64-unknown-linux-musl
217219
cargo-online build --release --target aarch64-unknown-linux-gnu
220+
cargo-online build --release --target aarch64-unknown-linux-musl
218221
219222
# Move the binaries to a more conveniennt location for exporting.
220223
mkdir artifacts
@@ -227,3 +230,6 @@ tasks:
227230
cp \
228231
target/aarch64-unknown-linux-gnu/release/paxos \
229232
artifacts/paxos-aarch64-unknown-linux-gnu
233+
cp \
234+
target/aarch64-unknown-linux-musl/release/paxos \
235+
artifacts/paxos-aarch64-unknown-linux-musl

0 commit comments

Comments
 (0)