From 37a9d2c7f18b15a0082941d3b4670992c9b029e2 Mon Sep 17 00:00:00 2001 From: Jiasheng Zhang Date: Thu, 17 Mar 2022 15:28:25 +0800 Subject: [PATCH] [misc] Add TI_CI env to CI/CD (#4551) * [misc] Add TI_CI env to CI/CD * resolve merge conflict --- .github/workflows/release.yml | 1 + .github/workflows/scripts/unix_test.sh | 1 + .github/workflows/testing.yml | 3 +++ 3 files changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 78c077bef3945..e098914e1d45e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.github/workflows/scripts/unix_test.sh b/.github/workflows/scripts/unix_test.sh index fca398ae663af..93f5f4edbe298 100755 --- a/.github/workflows/scripts/unix_test.sh +++ b/.github/workflows/scripts/unix_test.sh @@ -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 diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2c8fd9a345156..5886717e8bcdd 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -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) @@ -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' @@ -471,3 +473,4 @@ jobs: TI_WANTED_ARCHS: "metal,vulkan,cpu" PY: ${{ matrix.python }} PLATFORM: "m1" + TI_CI: 1