File tree Expand file tree Collapse file tree 2 files changed +53
-10
lines changed
Expand file tree Collapse file tree 2 files changed +53
-10
lines changed Original file line number Diff line number Diff line change 44 types : [opened, synchronize, reopened]
55
66jobs :
7- docker_cpu_build :
8- runs-on : ubuntu-latest
9- container : registry.taichigraphics.com/taichidev-ubuntu20.04-test:v0.1
10- steps :
11- - run : |
12- ti test
137
14- docker_gpu_build :
15- runs-on : [self-hosted, cuda, vulkan]
16- container : registry.taichigraphics.com/taichidev-ubuntu20.04-test:v0.1
8+ docker_cpu_test :
9+ runs-on : [self-hosted, cn, cuda, vulkan]
1710 steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ submodules : ' recursive'
14+
1815 - run : |
19- ti test
16+ docker create --user dev --name taichi --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix registry.taichigraphics.com/taichidev-ubuntu20.04:v0.1.0 /home/dev/taichi/.github/workflows/scripts/unix_docker_build.sh CI_SETUP_CMAKE_ARGS=$CI_SETUP_CMAKE_ARGS PY=$PY
17+ docker cp ./taichi taichi:/home/dev/taichi
18+ docker start -a taichi
19+ env:
20+ DISPLAY: :1
21+ CI_SETUP_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=ON -DTI_WITH_CC:BOOL=OFF -DTI_WITH_VULKAN:BOOL=ON -DTI_BUILD_TESTS:BOOL=ON
22+ PY: py38
23+
24+ - name : clean docker container
25+ if : always()
26+ run : docker rm taichi -f
27+
28+ # #- uses: addnab/docker-run-action@v3
29+ # # with:
30+ # # username: admin
31+
32+ # - uses: docker://registry.taichigraphics.com/taichidev-ubuntu20.04-test:v0.1
33+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ # Parse ARGs
6+ for ARGUMENT in " $@ "
7+ do
8+ KEY=$( echo $ARGUMENT | cut -f1 -d=)
9+ VALUE=$( echo $ARGUMENT | cut -f2 -d=)
10+ case " $KEY " in
11+ CI_SETUP_CMAKE_ARGS) SHA=${VALUE} ;;
12+ PY) PY=${VALUE} ;;
13+ * )
14+ esac
15+ done
16+
17+ source /home/dev/miniconda/etc/profile.d/conda.sh
18+ conda activate $PY
19+
20+ cd taichi
21+ python3 -m pip install --user -r requirements_dev.txt
22+ python3 -m pip install torch==1.9.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
23+ TAICHI_CMAKE_ARGS=$CI_SETUP_CMAKE_ARGS python3 setup.py install --user
24+
25+ export TI_IN_DOCKER=true
26+
27+ ti diagnose
28+ ti test -vr2 -t2 -k " not ndarray and not torch"
29+ ti test -vr2 -t1 -k " ndarray or torch"
You can’t perform that action at this time.
0 commit comments