Skip to content

Commit

Permalink
Merge pull request #172 from stepchowfun/aarch64-apple-darwin
Browse files Browse the repository at this point in the history
Add support for macOS on Apple silicon
  • Loading branch information
stepchowfun authored May 12, 2023
2 parents 646687b + 7622b6a commit c340929
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,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/tagref
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/tagref
if-no-files-found: error
install-macos:
name: Install on macOS
runs-on: macos-latest
Expand Down Expand Up @@ -153,6 +165,9 @@ jobs:
mv \
artifacts/x86_64-apple-darwin/tagref \
artifacts/tagref-x86_64-apple-darwin
mv \
artifacts/aarch64-apple-darwin/tagref \
artifacts/tagref-aarch64-apple-darwin
mv \
artifacts/x86_64-pc-windows-msvc/tagref.exe \
artifacts/tagref-x86_64-pc-windows-msvc.exe
Expand All @@ -164,6 +179,7 @@ jobs:
--attach 'artifacts/tagref-x86_64-unknown-linux-gnu' \
--attach 'artifacts/tagref-x86_64-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' \
"v$VERSION"
echo "Created release v$VERSION."
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.1] - 2023-05-11

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

## [1.8.0] - 2023-05-10

### 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.0"
version = "1.8.1"
authors = ["Stephan Boyer <[email protected]>"]
edition = "2021"
description = "Tagref helps you maintain cross-references in your code."
Expand Down

0 comments on commit c340929

Please sign in to comment.