Skip to content

Commit

Permalink
Replace -mmacosx-version-min with MACOSX_DEPLOYMENT_TARGET env var (
Browse files Browse the repository at this point in the history
  • Loading branch information
lgeiger authored Jan 18, 2023
1 parent 8da2cc4 commit 6d2f48e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,14 @@ jobs:
python -m pip install delocate wheel setuptools numpy six --no-cache-dir
./configure.py
export MACOSX_DEPLOYMENT_TARGET=10.14
if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
echo -e 'build --remote_http_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 --copt=-mmacosx-version-min=10.14 --linkopt=-mmacosx-version-min=10.14 --linkopt=-dead_strip --distinct_host_configuration=false
bazelisk build :build_pip_pkg --copt=-fvisibility=hidden --copt=-mavx --linkopt=-dead_strip --distinct_host_configuration=false
bazel-bin/build_pip_pkg artifacts --plat-name macosx_10_14_x86_64
for f in artifacts/*.whl; do
Expand Down Expand Up @@ -196,13 +197,14 @@ jobs:
python -m pip install delocate wheel setuptools numpy six --no-cache-dir
./configure.py
export MACOSX_DEPLOYMENT_TARGET=11.0
if [[ -n $GOOGLE_APPLICATION_CREDENTIALS ]]; then
echo -e 'build --remote_http_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 --copt=-mmacosx-version-min=11.0 --linkopt=-mmacosx-version-min=11.0 --linkopt=-dead_strip --config=macos_arm64
bazelisk build :build_pip_pkg --copt=-fvisibility=hidden --linkopt=-dead_strip --config=macos_arm64
bazel-bin/build_pip_pkg artifacts --plat-name macosx_11_0_arm64
for f in artifacts/*.whl; do
Expand Down

0 comments on commit 6d2f48e

Please sign in to comment.