Skip to content

Commit

Permalink
Add support for Apple silicon
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchowfun committed May 14, 2023
1 parent 47534f7 commit 3015560
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 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/docuum
if-no-files-found: error
- uses: actions/upload-artifact@v2
with:
name: aarch64-apple-darwin
path: target/aarch64-apple-darwin/release/docuum
if-no-files-found: error
install-macos:
name: Install on macOS
runs-on: macos-latest
Expand Down Expand Up @@ -157,6 +169,9 @@ jobs:
mv \
artifacts/x86_64-apple-darwin/docuum \
artifacts/docuum-x86_64-apple-darwin
mv \
artifacts/aarch64-apple-darwin/docuum \
artifacts/docuum-aarch64-apple-darwin
mv \
artifacts/x86_64-pc-windows-msvc/docuum.exe \
artifacts/docuum-x86_64-pc-windows-msvc.exe
Expand Down Expand Up @@ -189,6 +204,7 @@ jobs:
--attach 'artifacts/docuum-x86_64-unknown-linux-gnu' \
--attach 'artifacts/docuum-x86_64-unknown-linux-musl' \
--attach 'artifacts/docuum-x86_64-apple-darwin' \
--attach 'artifacts/docuum-aarch64-apple-darwin' \
--attach 'artifacts/docuum-x86_64-pc-windows-msvc.exe' \
"v$VERSION"
echo "Created release v$VERSION."
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ 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.22.0] - 2023-04-09
## [0.22.1] - 2023-05-13

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

## [0.22.0] - 2023-04-09

### Added
- Added `--deletion-chunk-size`, thanks to Kulek Alexandr.
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 = "docuum"
version = "0.22.0"
version = "0.22.1"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2021"
description = "LRU eviction of Docker images."
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ Installation consists of two steps:

### Installing the binary

#### 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 Docuum with this command:
If you're running macOS (AArch64 or x86-64) or Linux (x86-64), you can install Docuum with this command:

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

0 comments on commit 3015560

Please sign in to comment.