Skip to content
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

[ci] Test macOS-11 #132

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
2 changes: 2 additions & 0 deletions .github/workflows/issue_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ jobs:
commands: |
format
benchmark
rebase
rerun
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
runs-on: macos-latest
runs-on: macos-11
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -155,7 +155,7 @@ jobs:
- name: Download Pre-Built LLVM 10.0.0
run: python misc/ci_download.py
env:
CI_PLATFORM: macos-latest
CI_PLATFORM: macos-11

- name: Create Python Wheel
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ jobs:
build_and_test_cpu_mac:
name: Build and Test macos (CPU)
needs: [check_code_format, check_files]
timeout-minutes: 60
timeout-minutes: 90
strategy:
matrix:
include:
- os: macos-latest
- os: macos-11
python: 3.7
with_cc: OFF
with_cpp_tests: ON
Expand Down Expand Up @@ -265,12 +265,15 @@ jobs:

- name: Build & Install
run: |
brew install llvm@11
export CXX=/usr/local/opt/llvm@11/bin/clang++
if [[ ${{needs.check_files.outputs.run_job}} == false ]]; then
exit 0
fi
mkdir -p sccache_cache
export PATH=`pwd`/taichi-llvm/bin/:$PATH
.github/workflows/scripts/unix_build.sh
mv ./dist/taichi-0.8.10-cp37-cp37m-macosx_11_0_x86_64.whl ./dist/taichi-0.8.10-cp37-cp37m-macosx_10_15_x86_64.whl
env:
TAICHI_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=${{ matrix.with_cc }} -DTI_WITH_VULKAN:BOOL=OFF -DTI_BUILD_TESTS:BOOL=${{ matrix.with_cpp_tests }} -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
CXX: clang++
Expand Down