Skip to content

Commit

Permalink
Merge pull request #1766 from zowe/feat/daemon-macos-universal
Browse files Browse the repository at this point in the history
Add Apple Silicon support for Zowe daemon
  • Loading branch information
t1m0thyj authored Aug 1, 2023
2 parents 6945988 + 99809f0 commit 1b90aff
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust-cli-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: repo

- name: Prepare Cross
run: cargo install [email protected]

Expand Down Expand Up @@ -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: |
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/rust-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand All @@ -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

Expand Down
4 changes: 3 additions & 1 deletion packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ All notable changes to the Zowe CLI package will be documented in this file.

## Recent Changes

- Enhancement: Updated daemon on MacOS to use universal binary which adds support for Apple Silicon.
- BugFix: Fixed an issue in the Daemon server which prevents users on Windows with uppercase letters in their username from using the Daemon

## `7.17.0`

- Enhancement: Created zos-files edit commands to edit a dataset or uss file locally [PR #1672](https://github.com/zowe/zowe-cli/pull/1672)

## `7.16.5`
Expand All @@ -18,7 +20,7 @@ All notable changes to the Zowe CLI package will be documented in this file.

## `7.16.4`

BugFix: Fixed `secondary` option being specified as `1` on `BLANK` type datasets with the `zowe files create data-set` command [#1595](https://github.com/zowe/zowe-cli/issues/1595)
- BugFix: Fixed `secondary` option being specified as `1` on `BLANK` type datasets with the `zowe files create data-set` command [#1595](https://github.com/zowe/zowe-cli/issues/1595)


## `7.16.3`
Expand Down
2 changes: 1 addition & 1 deletion zowex/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 zowex/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zowe"
version = "1.1.0"
version = "1.2.0"
authors = ["Zowe Project"]
edition = "2018"
license = "EPL-2.0"
Expand Down

0 comments on commit 1b90aff

Please sign in to comment.