Skip to content

Commit 779e15b

Browse files
authored
Merge pull request #103 from stepchowfun/apple-silicon
Add support for Apple silicon
2 parents 09a17fb + dc72551 commit 779e15b

File tree

5 files changed

+29
-4
lines changed

5 files changed

+29
-4
lines changed

Diff for: .github/workflows/ci.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,26 @@ jobs:
7878
rustup toolchain install 1.65.0 # [ref:rust_1.65.0]
7979
rustup default 1.65.0 # [ref:rust_1.65.0]
8080
81-
# Build and test.
81+
# Build and test for x86_64-apple-darwin.
8282
cargo build --locked --release --target x86_64-apple-darwin
8383
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
84+
85+
# Build and test for aarch64-apple-darwin.
86+
rustup target add aarch64-apple-darwin
87+
SDKROOT=$(xcrun --show-sdk-path) \
88+
MACOSX_DEPLOYMENT_TARGET=$(xcrun --show-sdk-version) \
89+
cargo build --locked --release --target aarch64-apple-darwin
90+
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
8491
- uses: actions/upload-artifact@v2
8592
with:
8693
name: x86_64-apple-darwin
8794
path: target/x86_64-apple-darwin/release/paxos
8895
if-no-files-found: error
96+
- uses: actions/upload-artifact@v2
97+
with:
98+
name: aarch64-apple-darwin
99+
path: target/aarch64-apple-darwin/release/paxos
100+
if-no-files-found: error
89101
install-macos:
90102
name: Install on macOS
91103
runs-on: macos-latest
@@ -153,6 +165,9 @@ jobs:
153165
mv \
154166
artifacts/x86_64-apple-darwin/paxos \
155167
artifacts/paxos-x86_64-apple-darwin
168+
mv \
169+
artifacts/aarch64-apple-darwin/paxos \
170+
artifacts/paxos-aarch64-apple-darwin
156171
mv \
157172
artifacts/x86_64-pc-windows-msvc/paxos.exe \
158173
artifacts/paxos-x86_64-pc-windows-msvc.exe
@@ -164,6 +179,7 @@ jobs:
164179
--attach 'artifacts/paxos-x86_64-unknown-linux-gnu' \
165180
--attach 'artifacts/paxos-x86_64-unknown-linux-musl' \
166181
--attach 'artifacts/paxos-x86_64-apple-darwin' \
182+
--attach 'artifacts/paxos-aarch64-apple-darwin' \
167183
--attach 'artifacts/paxos-x86_64-pc-windows-msvc.exe' \
168184
"v$VERSION"
169185
echo "Created release v$VERSION."

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.1] - 2023-05-13
9+
10+
### Added
11+
- Paxos supports a new platform: macOS on Apple silicon.
12+
813
## [1.0.0] - 2021-06-20
914

1015
### Added

Diff for: Cargo.lock

+3-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.0"
3+
version = "1.0.1"
44
authors = ["Stephan Boyer <[email protected]>"]
55
edition = "2021"
66
description = "An implementation of single-decree Paxos."

Diff for: README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ OPTIONS:
5252

5353
## Installation instructions
5454

55-
### Installation on macOS or Linux (x86-64)
55+
### Installation on macOS (AArch64 or x86-64) or Linux (x86-64)
56+
57+
If you're running macOS (AArch64 or x86-64) or Linux (x86-64), you can install Paxos with this command:
5658

5759
If you're running macOS or Linux on an x86-64 CPU, you can install Paxos with this command:
5860

0 commit comments

Comments
 (0)