-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
111 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
name: Persubmit Checks | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
|
||
# test | ||
jobs: | ||
build_and_test_cpu_required: | ||
# This job will be required to pass before merging to master branch. | ||
name: Required Build and Test (CPU) | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip ci') }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
python: 3.6 | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Download Pre-Built LLVM 10.0.0 | ||
run: | | ||
python misc/ci_download.py | ||
mkdir taichi-llvm | ||
cd taichi-llvm | ||
unzip ../taichi-llvm.zip | ||
env: | ||
CI_PLATFORM: ${{ matrix.os }} | ||
|
||
- name: Build | ||
run: | | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH | ||
export CXX=clang++ | ||
python misc/ci_setup.py ci | ||
env: | ||
CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=ON -DTI_BUILD_TESTS:BOOL=ON | ||
|
||
- name: Test | ||
run: | | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=$TAICHI_REPO_DIR/bin:$PATH | ||
export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH | ||
export PYTHONPATH=$TAICHI_REPO_DIR/python | ||
python examples/laplace.py | ||
ti diagnose | ||
./build/taichi_cpp_tests | ||
ti test -vr2 -t2 | ||
##name: Persubmit Checks | ||
##on: | ||
## pull_request: | ||
## types: [opened, synchronize, reopened] | ||
## | ||
## | ||
### test | ||
##jobs: | ||
## build_and_test_cpu_required: | ||
## # This job will be required to pass before merging to master branch. | ||
## name: Required Build and Test (CPU) | ||
## if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip ci') }} | ||
## strategy: | ||
## matrix: | ||
## include: | ||
## - os: ubuntu-latest | ||
## python: 3.6 | ||
## runs-on: ${{ matrix.os }} | ||
## steps: | ||
## - uses: actions/checkout@v2 | ||
## - uses: actions/setup-python@v2 | ||
## with: | ||
## python-version: ${{ matrix.python }} | ||
## | ||
## - name: Download Pre-Built LLVM 10.0.0 | ||
## run: | | ||
## python misc/ci_download.py | ||
## mkdir taichi-llvm | ||
## cd taichi-llvm | ||
## unzip ../taichi-llvm.zip | ||
## env: | ||
## CI_PLATFORM: ${{ matrix.os }} | ||
## | ||
## - name: Build | ||
## run: | | ||
## export TAICHI_REPO_DIR=`pwd` | ||
## export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH | ||
## export CXX=clang++ | ||
## python misc/ci_setup.py ci | ||
## env: | ||
## CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=ON -DTI_BUILD_TESTS:BOOL=ON | ||
## | ||
## - name: Test | ||
## run: | | ||
## export TAICHI_REPO_DIR=`pwd` | ||
## export PATH=$TAICHI_REPO_DIR/bin:$PATH | ||
## export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH | ||
## export PYTHONPATH=$TAICHI_REPO_DIR/python | ||
## python examples/laplace.py | ||
## ti diagnose | ||
## ./build/taichi_cpp_tests | ||
## ti test -vr2 -t2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Windows Build | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build_windows: | ||
name: Build on Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Install 7Zip PowerShell | ||
shell: powershell | ||
run: Install-Module 7Zip4PowerShell -Force -Verbose | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.6' | ||
architecture: x64 | ||
|
||
- name: Build | ||
shell: cmd | ||
run: | | ||
set PYTHON=%RUNNER_TOOL_CACHE%\Python\3.6.8\x64\python.exe | ||
set TAICHI_REPO_DIR=D:\a\test_actions\test_actions | ||
cd /d C:\ | ||
curl --retry 10 --retry-delay 5 https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/taichi-llvm-10.0.0-msvc2019.zip -LO | ||
7z x taichi-llvm-10.0.0-msvc2019.zip -otaichi_llvm | ||
curl --retry 10 --retry-delay 5 https://github.com/taichi-dev/taichi_assets/releases/download/llvm10/clang-10.0.0-win.zip -LO | ||
7z x clang-10.0.0-win.zip -otaichi_clang | ||
set PATH=%PATH%;C:\taichi_llvm\bin | ||
set PATH=%PATH%;C:\taichi_clang\bin | ||
set PYTHONPATH=%TAICHI_REPO_DIR%\python | ||
set PATH=%TAICHI_REPO_DIR%\bin;%PATH% | ||
clang --version | ||
cd /d D:\a\test_actions\test_actions | ||
python -m pip install numpy | ||
python -m pip install pybind11 | ||
python "misc\\ci_setup.py" ci | ||
mkdir build | ||
cd build | ||
cmake .. -G"Visual Studio 16 2019" -A x64 -DLLVM_DIR="C:\taichi_llvm\lib\cmake\llvm" | ||
msbuild /p:Configuration=RelWithDebInfo /p:Platform=x64 /m taichi.sln | ||
cd .. | ||
python -c "import taichi" | ||
python "examples\\laplace.py" | ||
python "bin\\taichi" diagnose | ||
python "bin\\taichi" test -Cvr2 -t2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters