-
Notifications
You must be signed in to change notification settings - Fork 285
[CI] [GHA] Migrate mac
workflow to mac-14 arm64
#2533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 17 commits
f6679eb
e7afd2c
ac8e042
92f235f
fedcae6
e77193b
59fe335
292273e
90cbf5c
2d0ba4d
603eb8b
ae99735
0139b03
117d688
81c137d
632999e
81504b0
7236ac1
94802ee
6437370
f5dc051
b23f32e
ac00c4b
73ccda8
dab4369
968e8e7
8ce006d
655f58e
b08dd3a
6b58a63
d9b1cb8
a87bec6
34cbe61
1e70386
ef1c275
f78ce54
375a1c0
8c31ddb
79ef565
8ed9bcf
970138e
3ab34ab
0afc3fe
02eb1f0
a38cb7f
c85dae0
444923e
bda1a56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,4 +1,4 @@ | ||||||
name: macOS (13, Python 3.10) | ||||||
name: macOS (14, Python 3.10) | ||||||
on: | ||||||
workflow_dispatch: | ||||||
pull_request: | ||||||
|
@@ -19,7 +19,7 @@ env: | |||||
MACOSX_DEPLOYMENT_TARGET: '11.0' | ||||||
PYTHON_VERSION: '3.10' | ||||||
TARGET_BRANCH: ${{ github.base_ref || github.event.merge_group.base_ref || github.ref }} | ||||||
BASE_PRODUCT_TYPE: public_darwin | ||||||
BASE_PRODUCT_TYPE: public_macos_arm64 | ||||||
CCACHE_MAXSIZE: 500Mi | ||||||
HF_HOME: ~/.cache/hf | ||||||
OV_CACHE: ~/.cache/ov_cache/194c936 | ||||||
|
@@ -81,7 +81,8 @@ jobs: | |||||
- uses: openvinotoolkit/openvino/.github/actions/openvino_provider@master | ||||||
id: openvino_download | ||||||
with: | ||||||
platform: macos_12_6 | ||||||
platform: macos_14_7 | ||||||
arch: 'arm64' | ||||||
commit_packages_to_provide: wheels,developer_package.tar.gz,openvino_node_npm_package.tar.gz | ||||||
revision: latest_available_commit | ||||||
|
||||||
|
@@ -96,7 +97,7 @@ jobs: | |||||
defaults: | ||||||
run: | ||||||
shell: bash | ||||||
runs-on: macos-13 | ||||||
runs-on: macos-14 | ||||||
env: | ||||||
CMAKE_GENERATOR: Ninja | ||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache | ||||||
|
@@ -148,7 +149,7 @@ jobs: | |||||
with: | ||||||
repos: ${{ env.SRC_DIR }} | ||||||
product_type: ${{ env.BASE_PRODUCT_TYPE }}_${{ matrix.build-type }} | ||||||
target_arch: 'x86_64' | ||||||
target_arch: 'arm64' | ||||||
build_type: ${{ matrix.build-type }} | ||||||
save_to: ${{ env.MANIFEST_PATH }} | ||||||
|
||||||
|
@@ -161,7 +162,7 @@ jobs: | |||||
cmake -DOpenVINODeveloperPackage_DIR=${{ env.OV_INSTALL_DIR }}/developer_package/cmake \ | ||||||
-DENABLE_PYTHON=ON \ | ||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ | ||||||
-S ${{ env.SRC_DIR}} \ | ||||||
-S ${{ env.SRC_DIR }} \ | ||||||
-B ${{ env.BUILD_DIR }} | ||||||
cmake --build ${{ env.BUILD_DIR}} --config ${{ matrix.build-type }} --parallel $(nproc) --verbose | ||||||
cmake --install ${{ env.BUILD_DIR }} --config ${{ matrix.build-type }} --prefix ${{ env.INSTALL_DIR }} | ||||||
|
@@ -216,7 +217,7 @@ jobs: | |||||
defaults: | ||||||
run: | ||||||
shell: bash | ||||||
runs-on: macos-13 | ||||||
runs-on: macos-14 | ||||||
env: | ||||||
CCACHE_DIR: ${{ github.workspace }}/ccache | ||||||
CMAKE_CXX_COMPILER_LAUNCHER: ccache | ||||||
|
@@ -265,7 +266,7 @@ jobs: | |||||
with: | ||||||
repos: ${{ env.SRC_DIR }} | ||||||
product_type: ${{ env.BASE_PRODUCT_TYPE }}_Release | ||||||
target_arch: 'x86_64' | ||||||
target_arch: 'arm64' | ||||||
build_type: Release | ||||||
save_to: ${{ github.workspace }} | ||||||
|
||||||
|
@@ -274,6 +275,7 @@ jobs: | |||||
|
||||||
- name: Build Tokenizers Wheel | ||||||
run: | | ||||||
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(nproc) - 1 )) | ||||||
python -m pip wheel -v --no-deps --wheel-dir ${{ env.WHEELS_DIR }} \ | ||||||
--config-settings='override=wheel.build_tag="${{ github.run_number }}"' \ | ||||||
${{ needs.openvino_download.outputs.ov_wheel_source }} \ | ||||||
|
@@ -282,13 +284,16 @@ jobs: | |||||
|
||||||
- name: Build GenAI Wheel | ||||||
run: | | ||||||
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(nproc) - 1 )) | ||||||
|
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(nproc) - 1 )) | |
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(sysctl -n hw.ncpu) - 1 )) |
Copilot uses AI. Check for mistakes.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The nproc
command is not available on macOS. Use sysctl -n hw.ncpu
instead to get the number of CPU cores on macOS.
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(nproc) - 1 )) | |
export CMAKE_BUILD_PARALLEL_LEVEL=$(( $(sysctl -n hw.ncpu) - 1 )) |
Copilot uses AI. Check for mistakes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
nproc
command is not available on macOS. Usesysctl -n hw.ncpu
instead to get the number of CPU cores on macOS.Copilot uses AI. Check for mistakes.