Skip to content

Commit

Permalink
Merge pull request #426 from stepchowfun/apple-silicon
Browse files Browse the repository at this point in the history
Add support for Apple silicon
  • Loading branch information
stepchowfun authored May 14, 2023
2 parents 82f6a05 + 2977c08 commit 5410f94
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,26 @@ jobs:
rustup toolchain install 1.65.0 # [ref:rust_1.65.0]
rustup default 1.65.0 # [ref:rust_1.65.0]
# Build and test.
# Build and test for x86_64-apple-darwin.
cargo build --locked --release --target x86_64-apple-darwin
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
# Build and test for aarch64-apple-darwin.
rustup target add aarch64-apple-darwin
SDKROOT=$(xcrun --show-sdk-path) \
MACOSX_DEPLOYMENT_TARGET=$(xcrun --show-sdk-version) \
cargo build --locked --release --target aarch64-apple-darwin
NO_COLOR=true cargo test --locked # [ref:colorless_tests]
- uses: actions/upload-artifact@v2
with:
name: x86_64-apple-darwin
path: target/x86_64-apple-darwin/release/typical
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/typical
if-no-files-found: error
install-macos:
name: Install on macOS
runs-on: macos-latest
Expand Down Expand Up @@ -160,6 +172,9 @@ jobs:
mv \
artifacts/x86_64-apple-darwin/typical \
artifacts/typical-x86_64-apple-darwin
mv \
artifacts/aarch64-apple-darwin/typical \
artifacts/typical-aarch64-apple-darwin
mv \
artifacts/x86_64-pc-windows-msvc/typical.exe \
artifacts/typical-x86_64-pc-windows-msvc.exe
Expand All @@ -171,6 +186,7 @@ jobs:
--attach 'artifacts/typical-x86_64-unknown-linux-gnu' \
--attach 'artifacts/typical-x86_64-unknown-linux-musl' \
--attach 'artifacts/typical-x86_64-apple-darwin' \
--attach 'artifacts/typical-aarch64-apple-darwin' \
--attach 'artifacts/typical-x86_64-pc-windows-msvc.exe' \
"v$VERSION"
echo "Created release v$VERSION."
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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).
## [0.9.3] - 2023-05-13

### Added
- Typical supports a new platform: macOS on Apple silicon.

## [0.9.2] - 2022-01-11

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 = "typical"
version = "0.9.2"
version = "0.9.3"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2021"
description = "Data interchange with algebraic data types."
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ ARGS:

## Installation instructions

### Installation on macOS or Linux (x86-64)
### Installation on macOS (AArch64 or x86-64) or Linux (x86-64)

If you're running macOS or Linux on an x86-64 CPU, you can install Typical with this command:
If you're running macOS (AArch64 or x86-64) or Linux (x86-64), you can install Typical with this command:

```sh
curl https://raw.githubusercontent.com/stepchowfun/typical/main/install.sh -LSfs | sh
Expand Down

0 comments on commit 5410f94

Please sign in to comment.