Skip to content

Commit

Permalink
feature: build all arm64e targets (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
arttet authored Dec 19, 2023
1 parent 96b1252 commit bbacad9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 38 deletions.
41 changes: 4 additions & 37 deletions .github/workflows/rust-compiler-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,15 @@ jobs:
# https://github.com/actions/runner-images/tree/main/images/macos
# https://developer.apple.com/support/xcode/

- rust-targets: arm64e-apple-ios
- rust-targets: arm64e-apple-ios,aarch64-apple-ios,arm64e-apple-darwin,aarch64-apple-darwin
os: macos-13
xcode-version: 15.0.1
rust-config: configure-with-llvm
rust-verbose-level: 0
macosx_deployment_target: 11.0
iphoneos_deployment_target: 14.0

- rust-targets: arm64e-apple-ios
os: macos-13
xcode-version: 14.3.1
rust-config: configure
rust-verbose-level: 0
rust-use-lld: true
macosx_deployment_target: 11.0
iphoneos_deployment_target: 14.0

- rust-targets: aarch64-apple-ios
os: macos-13
xcode-version: 15.0.1
rust-config: configure
rust-verbose-level: 0

- rust-targets: arm64e-apple-darwin
os: macos-13
xcode-version: 15.0.1
rust-config: configure-with-llvm
rust-verbose-level: 0
macosx_deployment_target: 11.0
iphoneos_deployment_target: 14.0

- rust-targets: arm64e-apple-darwin
os: macos-13
xcode-version: 14.3.1
rust-config: configure
rust-verbose-level: 0
macosx_deployment_target: 11.0
iphoneos_deployment_target: 14.0

- rust-targets: aarch64-apple-darwin
os: macos-13
xcode-version: 15.0.1
rust-config: configure
rust-verbose-level: 0

runs-on: ${{ matrix.os }}
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }}
Expand Down Expand Up @@ -106,13 +71,15 @@ jobs:
uses: actions/checkout@v4
with:
repository: rust-lang/rust
ref: master
submodules: true
path: rust

- name: Configure Rust
run: make ${{ matrix.rust-config }}
env:
RUST_VERBOSE: ${{ matrix.rust-verbose-level }}
RUST_USE_LLD: ${{ matrix.rust-use-lld }}

- name: Build Rust
run: make all
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUST_CHANNEL ?= dev
RUST_DESCRIPTION ?= ""
RUST_INSTALL_DIR ?= install
RUST_DIST_FORMATS ?= xz
RUST_USE_LLD ?= false

# NOTE: use Makefile.local for customization
-include Makefile.local
Expand Down Expand Up @@ -57,6 +58,7 @@ configure: ## Configure Rust
--set build.verbose=${RUST_VERBOSE} \
--set rust.channel=${RUST_CHANNEL} \
--set rust.description=${RUST_DESCRIPTION} \
--set rust.use-lld=${RUST_USE_LLD} \
--dist-compression-formats=${RUST_DIST_FORMATS} \
--prefix=${RUST_INSTALL_DIR}

Expand All @@ -79,7 +81,7 @@ configure-with-llvm: ## Configure Rust and LLVM
--set build.verbose=${RUST_VERBOSE} \
--set rust.channel=${RUST_CHANNEL} \
--set rust.description=${RUST_DESCRIPTION} \
--set rust.use-lld=true \
--set rust.use-lld=${RUST_USE_LLD} \
--set rust.omit-git-hash=true \
--dist-compression-formats=${RUST_DIST_FORMATS} \
--prefix=${RUST_INSTALL_DIR}
Expand Down

0 comments on commit bbacad9

Please sign in to comment.