-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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] Build and test the CUDA backend using GitHub actions #1863
Merged
yuanming-hu
merged 9 commits into
taichi-dev:master
from
yuanming-hu:github-action-cuda
Sep 12, 2020
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ae91d8a
test cuda
yuanming-hu a4cdebe
git version
yuanming-hu d6fcdd9
llvm version
yuanming-hu 7299981
Python path
yuanming-hu 6fa724b
py version
yuanming-hu d11df00
python path
yuanming-hu 7852f87
py
yuanming-hu 2d2068e
executable
yuanming-hu f03c95f
[skip ci] enforce code format
taichi-gardener File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ on: | |
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test | ||
build_and_test_cpu: | ||
name: Build and Test (CPU) | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip ci') && github.event.sender.login != 'taichi-gardener' }} | ||
strategy: | ||
matrix: | ||
|
@@ -38,7 +38,7 @@ jobs: | |
env: | ||
CI_PLATFORM: ${{ matrix.os }} | ||
|
||
- name: Build Project | ||
- name: Build | ||
run: | | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=$TAICHI_REPO_DIR/taichi-llvm/bin/:$PATH | ||
|
@@ -47,7 +47,7 @@ jobs: | |
env: | ||
CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=${{ matrix.with_cc }} | ||
|
||
- name: Functionallity Test | ||
- name: Test | ||
run: | | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=$TAICHI_REPO_DIR/bin:$PATH | ||
|
@@ -57,6 +57,35 @@ jobs: | |
ti diagnose | ||
ti test -vr2 -t2 | ||
|
||
build_and_test_cuda: | ||
name: Build and Test (CUDA) | ||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip ci') && github.event.sender.login != 'taichi-gardener' }} | ||
runs-on: [zhen] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
git --version | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=/home/github/taichi-llvm/bin/:$PATH | ||
export CXX=clang++-8 | ||
export PYTHON=/usr/bin/python3.7 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not make use of actions/setup-python? |
||
$PYTHON misc/ci_setup.py ci | ||
env: | ||
CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=OFF -DTI_WITH_CC:BOOL=${{ matrix.with_cc }} | ||
|
||
- name: Test | ||
run: | | ||
export PYTHON=/usr/bin/python3.7 | ||
export TAICHI_REPO_DIR=`pwd` | ||
export PATH=$TAICHI_REPO_DIR/bin:$PATH | ||
export PATH=/home/github/taichi-llvm/bin/:$PATH | ||
export PYTHONPATH=$TAICHI_REPO_DIR/python | ||
$PYTHON examples/laplace.py | ||
ti diagnose | ||
ti test -vr2 -t2 | ||
|
||
check_previous_run: | ||
name: Checks the Workflow Run of the Previous Commit | ||
runs-on: ubuntu-latest | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, this is our purchased server? Shall we test OpenGL or Metal there too?