Skip to content

Commit

Permalink
Attempt to fix MACOSX_DEPLOYMENT_TARGET
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombana committed Jun 18, 2024
1 parent d134c25 commit f5c3b25
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,16 @@ jobs:
python -m pip install delocate wheel setuptools numpy six --no-cache-dir
./configure.py
export MACOSX_DEPLOYMENT_TARGET=13.0
# This matches `release_macox_x86` in .tensorflow.bazelrc
export MACOSX_DEPLOYMENT_TARGET=10.15
if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
echo -e 'build --remote_cache=https://storage.googleapis.com/plumerai-bazel-cache/lce-release-macos-python${{ matrix.python-version }}' >> .bazelrc.user
echo -e 'build --google_default_credentials' >> .bazelrc.user
fi
bazelisk build :build_pip_pkg --copt=-fvisibility=hidden --copt=-mavx --linkopt=-dead_strip
bazel-bin/build_pip_pkg artifacts --plat-name macosx_13_0_x86_64
bazelisk build :build_pip_pkg --config=release_macos_x86 --config=release_cpu_macos --copt=-fvisibility=hidden --linkopt=-dead_strip
bazel-bin/build_pip_pkg artifacts --plat-name macosx_10_15_x86_64
for f in artifacts/*.whl; do
delocate-wheel -w wheelhouse $f
Expand Down Expand Up @@ -198,15 +199,16 @@ jobs:
python -m pip install delocate wheel setuptools numpy six --no-cache-dir
./configure.py
export MACOSX_DEPLOYMENT_TARGET=14.0
# This matches `release_macox_arm64` in .tensorflow.bazelrc
export MACOSX_DEPLOYMENT_TARGET=12.0
if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
echo -e 'build --remote_cache=https://storage.googleapis.com/plumerai-bazel-cache/lce-release-macos-arm-python${{ matrix.python-version }}' >> .bazelrc.user
echo -e 'build --google_default_credentials' >> .bazelrc.user
fi
bazelisk build :build_pip_pkg --copt=-fvisibility=hidden --linkopt=-dead_strip --config=macos_arm64
bazel-bin/build_pip_pkg artifacts --plat-name macosx_14_0_arm64
bazelisk build :build_pip_pkg --config=release_macos_arm64 --copt=-fvisibility=hidden --linkopt=-dead_strip
bazel-bin/build_pip_pkg artifacts --plat-name macosx_12_0_arm64
for f in artifacts/*.whl; do
delocate-wheel -w wheelhouse $f
Expand Down

0 comments on commit f5c3b25

Please sign in to comment.