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

[workflow] Add Mac OS X to Github CI #1649

Merged
merged 8 commits into from
Aug 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/persubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.6, 3.7, 3.8]
python: [3.6, 3.8]
with_cc: [OFF]
include:
- os: macos-latest
python: 3.7
with_cc: OFF
- os: ubuntu-latest
python: 3.8
with_cc: ON
Expand All @@ -26,20 +29,18 @@ jobs:

- name: Download Pre-Built LLVM 10.0.0
run: |
python misc/ci_download.py
mkdir taichi-llvm
cd taichi-llvm
wget https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-linux.zip --waitretry=3 --tries=5
unzip taichi-llvm-10.0.0-linux.zip
unzip ../taichi-llvm.zip
env:
CI_PLATFORM: ${{ matrix.os }}

- name: Build Project
run: |
export TAICHI_REPO_DIR=`pwd`
export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH
export CXX=clang++
# GLFW dependencies:
#export CI_SETUP_CMAKE_ARGS=-DTI_WITH_OPENGL:BOOL=ON
#sudo apt-get install libx11-dev libxcursor-dev libxi-dev
#sudo apt-get install libxrandr-dev libxinerama-dev libglvnd-dev
python misc/ci_setup.py ci
env:
CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=${{ matrix.with_cc }}
Expand Down Expand Up @@ -89,6 +90,6 @@ jobs:
- name: Run PR Title Checker
run: |
pip install semver GitPython
python misc/check_pr_title.py "$PR_TITLE"
python misc/ci_check_pr_title.py "$PR_TITLE"
env:
PR_TITLE: ${{ github.event.pull_request.title }}
File renamed without changes.
15 changes: 15 additions & 0 deletions misc/ci_download.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import os

platform = os.environ['CI_PLATFORM']
if platform.startswith('macos'):
platform = 'macos'
elif platform.startswith('ubuntu'):
platform = 'linux'
elif platform.startswith('windows'):
platform = 'msvc2019'
else:
raise Exception(f'Bad CI_PLATFORM={platform}')

llvm_url = f'https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-{platform}.zip'
print(f'Downloading LLVM from {llvm_url}...')
os.system(f'wget {llvm_url} --waitretry=3 --tries=5 -O taichi-llvm.zip')