From 8a8ff909767c93e29f12e3d2d47a36e2f6896cab Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Fri, 16 Feb 2024 16:43:28 -0500 Subject: [PATCH] [ci] install libomp before downgrade xcode --- .github/workflows/build_all.yml | 2 +- .github/workflows/build_macos_wheel.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 363a8c0a..3509331d 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -33,6 +33,7 @@ jobs: - name: Install dependencies (MacOS only) if: ${{ runner.os == 'macOS' }} run: | + brew install libomp curl -o Xcode10.app.tar.gz --insecure https://mcx.space/dev/ci/Xcode10.app.tar.gz tar zxf Xcode10.app.tar.gz rm -rf Xcode10.app.tar.gz @@ -43,7 +44,6 @@ jobs: conda config --add channels conda-forge conda config --set channel_priority strict conda install octave - brew install libomp brew link --force libomp brew install --cask lazarus echo "/Applications/Lazarus/" >> $GITHUB_PATH diff --git a/.github/workflows/build_macos_wheel.yml b/.github/workflows/build_macos_wheel.yml index bd14c2b6..56065729 100644 --- a/.github/workflows/build_macos_wheel.yml +++ b/.github/workflows/build_macos_wheel.yml @@ -36,13 +36,13 @@ jobs: python-version: ${{ matrix.python_version }} - name: Select Supported XCode Version + Link OpenMP run: | + brew install libomp curl -o Xcode10.app.tar.gz --insecure https://mcx.space/dev/ci/Xcode10.app.tar.gz tar zxf Xcode10.app.tar.gz sudo xcode-select -s $PWD/Xcode.app/Contents/Developer/ echo "$PWD/Xcode.app/Contents/Developer/usr/bin" >> $GITHUB_PATH echo "$PWD/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/" >> $GITHUB_PATH echo "SDKROOT=$PWD/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" >> $GITHUB_ENV - brew install libomp brew link --force libomp - name: Install CUDA run: |