Skip to content

Commit 2dc6fd7

Browse files
committed
force xcode 14.3
1 parent fe7a22d commit 2dc6fd7

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/posix.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ jobs:
6969
python-version: 3.9
7070
- name: Set extra env
7171
run: |
72-
# if [ "macos-11" == "${{ matrix.os }}" ]; then
73-
# Use xcrun --sdk macosx --show-sdk-path instead of hardcoding the path
74-
# echo "LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib" >> $GITHUB_ENV;
75-
# echo "LIBRARY_PATH=-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib" >> $GITHUB_ENV;
76-
# else
77-
# fi
7872
echo "DOCKER_TEST_IMAGE=$(echo multibuild/xenial_${{ matrix.PLAT}})" >> $GITHUB_ENV;
73+
74+
- uses: maxim-lobanov/setup-xcode@v1.6.0
75+
if: ${{ matrix.os == 'macos-13' }}
76+
with:
77+
xcode-version: '14.3'
78+
7979
- name: Print some Environment variable
8080
run: |
8181
echo "PLAT: ${PLAT}"
@@ -87,11 +87,6 @@ jobs:
8787
- name: Build OpenBLAS
8888
run: |
8989
set -xeo pipefail
90-
if [[ "$PLAT" == "arm64" ]]; then
91-
sudo xcode-select -switch /Applications/Xcode_12.5.1.app
92-
export SDKROOT=/Applications/Xcode_12.5.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
93-
clang --version
94-
fi
9590
source tools/build_steps.sh
9691
echo "------ BEFORE BUILD ---------"
9792
before_build
@@ -114,7 +109,7 @@ jobs:
114109
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
115110
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
116111
fi
117-
if [ "macos-11" == "${{ matrix.os }}" ]; then
112+
if [ "macos-13" == "${{ matrix.os }}" ]; then
118113
source tools/build_wheel.sh
119114
else
120115
libc=${MB_ML_LIBC:-manylinux}

0 commit comments

Comments
 (0)