Skip to content

Commit

Permalink
[misc] Add TI_CI env to CI/CD (#4551)
Browse files Browse the repository at this point in the history
* [misc] Add TI_CI env to CI/CD

* resolve merge conflict
  • Loading branch information
Leonz5288 authored Mar 17, 2022
1 parent 5d01a56 commit 37a9d2c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
METADATA_PASSWORD: ${{ secrets.METADATA_PASSWORD }}
METADATA_URL: ${{ secrets.METADATA_URL }}
RELEASE_VERSION: ${{ github.event.inputs.version }}
TI_CI: 1

jobs:
add_version_to_database:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ check_in_docker() {
}

export TI_SKIP_VERSION_CHECK=ON
export TI_CI=1
export TI_IN_DOCKER=$(check_in_docker)

if [[ "$TI_IN_DOCKER" == "true" ]]; then
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ jobs:
.github/workflows/scripts/unix_test.sh
env:
TI_WANTED_ARCHS: ${{ matrix.wanted_archs }}
TI_CI: 1

build_and_test_gpu_linux:
name: Build and Test (GPU)
Expand Down Expand Up @@ -417,6 +418,7 @@ jobs:
TI_WANTED_ARCHS: cpu,cuda,opengl
TAICHI_CMAKE_ARGS: -DTI_WITH_OPENGL:BOOL=ON -DTI_WITH_CC:BOOL=OFF
TI_SKIP_VERSION_CHECK: ON
TI_CI: 1
PYTHON: "3.7"
TI_DEVICE_MEMORY_GB: '0.7'

Expand Down Expand Up @@ -471,3 +473,4 @@ jobs:
TI_WANTED_ARCHS: "metal,vulkan,cpu"
PY: ${{ matrix.python }}
PLATFORM: "m1"
TI_CI: 1

0 comments on commit 37a9d2c

Please sign in to comment.