-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1766 from zowe/feat/daemon-macos-universal
Add Apple Silicon support for Zowe daemon
- Loading branch information
Showing
5 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: repo | ||
|
||
- name: Prepare Cross | ||
run: cargo install [email protected] | ||
|
||
|
@@ -102,13 +102,20 @@ jobs: | |
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-apple-darwin | ||
|
||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: repo | ||
|
||
- name: Build | ||
run: cargo build --verbose --release | ||
run: | | ||
cargo build --verbose --release --target aarch64-apple-darwin | ||
cargo build --verbose --release --target x86_64-apple-darwin | ||
mkdir -p target/release && cd target/release | ||
mv ../aarch64-apple-darwin/release/zowe zowe.aarch64 && mv ../x86_64-apple-darwin/release/zowe zowe.x86_64 | ||
lipo -create -output zowe zowe.aarch64 zowe.x86_64 | ||
- name: Create Archive | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,14 +24,14 @@ jobs: | |
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
|
||
- name: Prepare Cross | ||
run: cargo install [email protected] | ||
|
||
# Need to build in container with old version of GLIBC to support RHEL 7 | ||
# https://kobzol.github.io/rust/ci/2021/05/07/building-rust-binaries-in-ci-that-work-with-older-glibc.html | ||
- name: Build | ||
working-directory: zowex | ||
working-directory: zowex | ||
run: cross build --verbose | ||
|
||
- name: Create Archive | ||
|
@@ -63,9 +63,16 @@ jobs: | |
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: aarch64-apple-darwin | ||
|
||
- name: Build | ||
run: cargo build --verbose --manifest-path=zowex/Cargo.toml | ||
run: | | ||
cargo build --verbose --target aarch64-apple-darwin --manifest-path=zowex/Cargo.toml | ||
cargo build --verbose --target x86_64-apple-darwin --manifest-path=zowex/Cargo.toml | ||
mkdir -p zowex/target/debug && cd zowex/target/debug | ||
mv ../aarch64-apple-darwin/debug/zowe zowe.aarch64 && mv ../x86_64-apple-darwin/debug/zowe zowe.x86_64 | ||
lipo -create -output zowe zowe.aarch64 zowe.x86_64 | ||
- name: Create Archive | ||
run: | | ||
|
@@ -86,7 +93,7 @@ jobs: | |
name: Build Windows | ||
runs-on: windows-latest | ||
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && !contains(github.event.head_commit.message, '[ci skip]') | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters