From 38d829499fe50138802ed758e3703c9cb7d2a012 Mon Sep 17 00:00:00 2001 From: Proton Date: Fri, 27 Oct 2023 15:40:34 +0800 Subject: [PATCH] [build] Python 3.12 build --- .github/workflows/build.yaml | 2 +- .github/workflows/initiator.yaml | 2 +- .github/workflows/perf.yml | 4 ++-- .github/workflows/pull_request.yml | 2 +- .github/workflows/release.yml | 8 ++++---- .github/workflows/testing.yml | 20 ++++++++++---------- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5da34e3b05b9b..4d047d1c05f1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -330,7 +330,7 @@ jobs: python: ${{ fromJSON(inputs.python) }} _designated: [''] exclude: - - python: "3.7" + - python: "3.12" include: - _designated: '' designated: designated diff --git a/.github/workflows/initiator.yaml b/.github/workflows/initiator.yaml index 8cd5cfd4ddf8a..49cf3e2cc896f 100644 --- a/.github/workflows/initiator.yaml +++ b/.github/workflows/initiator.yaml @@ -57,7 +57,7 @@ jobs: with: build_id: ${{ needs.preparation.outputs.build_id }} nightly: false - python: '["3.9", "3.10", "3.11"]' + python: '["3.9", "3.10", "3.11", "3.12"]' secrets: BOT_MINIO_ACCESS_KEY: ${{ secrets.BOT_MINIO_ACCESS_KEY }} BOT_MINIO_SECRET_KEY: ${{ secrets.BOT_MINIO_SECRET_KEY }} diff --git a/.github/workflows/perf.yml b/.github/workflows/perf.yml index 44240a8e854ca..4ac05e0654b14 100644 --- a/.github/workflows/perf.yml +++ b/.github/workflows/perf.yml @@ -43,7 +43,7 @@ jobs: /home/dev/taichi/.github/workflows/scripts/build.py env: - PY: '3.8' + PY: '3.12' PROJECT_NAME: taichi TAICHI_CMAKE_ARGS: >- -DTI_WITH_OPENGL:BOOL=ON @@ -82,7 +82,7 @@ jobs: /home/dev/taichi/.github/workflows/scripts/unix-perf-mon.sh env: - PY: '3.8' + PY: '3.12' BENCHMARK_UPLOAD_TOKEN: ${{ secrets.BENCHMARK_UPLOAD_TOKEN }} GITHUB_EVENT_ACTION: ${{ github.event.action }} GITHUB_TOKEN: ${{ secrets.GARDENER_PAT }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 3cd9073e4f58a..16e7d7ce79e89 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.12 - name: Install Dependencies run: pip install semver GitPython PyGithub diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 837914ffe2278..a5506d4606208 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,16 +55,16 @@ jobs: run: | if [ -n "$RELEASE_VERSION" ]; then # For production release, we run on five python versions. - echo 'matrix={"include":[{"name":"taichi","python":"3.7"},{"name":"taichi","python":"3.8"},{"name":"taichi","python":"3.9"},{"name":"taichi","python":"3.10"},{"name":"taichi","python":"3.11"}]}"' >> $GITHUB_OUTPUT + echo 'matrix={"include":[{"name":"taichi","python":"3.7"},{"name":"taichi","python":"3.8"},{"name":"taichi","python":"3.9"},{"name":"taichi","python":"3.10"},{"name":"taichi","python":"3.11"},{"name":"taichi","python":"3.12"}]}"' >> $GITHUB_OUTPUT # M1 only supports 3.8, 3.9, and 3.10(conda), so change matrix. - echo 'matrix_osx={"include":[{"name":"taichi","python":"3.8"},{"name":"taichi","python":"3.9"},{"name":"taichi","python":"3.10"},{"name":"taichi","python":"3.11"}]}"' >> $GITHUB_OUTPUT + echo 'matrix_osx={"include":[{"name":"taichi","python":"3.8"},{"name":"taichi","python":"3.9"},{"name":"taichi","python":"3.10"},{"name":"taichi","python":"3.11"},{"name":"taichi","python":"3.12"}]}"' >> $GITHUB_OUTPUT else # For nightly release, we run on three python versions. - echo 'matrix={"include":[{"name":"taichi-nightly","python":"3.7"},{"name":"taichi-nightly","python":"3.8"},{"name":"taichi-nightly","python":"3.9"},{"name":"taichi-nightly","python":"3.10"},{"name":"taichi-nightly","python":"3.11"}]}"' >> $GITHUB_OUTPUT + echo 'matrix={"include":[{"name":"taichi-nightly","python":"3.7"},{"name":"taichi-nightly","python":"3.8"},{"name":"taichi-nightly","python":"3.9"},{"name":"taichi-nightly","python":"3.10"},{"name":"taichi-nightly","python":"3.11"},{"name":"taichi","python":"3.12"}]}"' >> $GITHUB_OUTPUT # M1 only supports 3.8 and 3.10(conda), so change matrix. - echo 'matrix_osx={"include":[{"name":"taichi-nightly","python":"3.8"},{"name":"taichi-nightly","python":"3.9"},{"name":"taichi-nightly","python":"3.10"},{"name":"taichi-nightly","python":"3.11"}]}"' >> $GITHUB_OUTPUT + echo 'matrix_osx={"include":[{"name":"taichi-nightly","python":"3.8"},{"name":"taichi-nightly","python":"3.9"},{"name":"taichi-nightly","python":"3.10"},{"name":"taichi-nightly","python":"3.11"},{"name":"taichi","python":"3.12"}]}"' >> $GITHUB_OUTPUT fi build_and_test_linux: diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index d1081c77f95e7..37b5ddbb24f59 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -118,7 +118,7 @@ jobs: matrix: include: - os: macos-10.15 - python: 3.7 + python: 3.12 with_cpp_tests: ON wanted_archs: 'cpu,vulkan' runs-on: @@ -317,7 +317,7 @@ jobs: timeout-minutes: ${{ github.event.schedule != '0 18 * * *' && 90 || 120 }} runs-on: [self-hosted, amdgpu] env: - PY: '3.8' + PY: '3.12' PROJECT_NAME: taichi TI_WANTED_ARCHS: 'cpu,amdgpu' TI_DEVICE_MEMORY_GB: '1' @@ -397,7 +397,7 @@ jobs: - ${{ matrix.extra_markers == 'sm70' && 'sm70' || 'windows' }} timeout-minutes: ${{ github.event.schedule != '0 18 * * *' && 90 || 180 }} env: - PY: "3.7" + PY: "3.12" TAICHI_CMAKE_ARGS: >- -DTI_WITH_OPENGL:BOOL=ON -DTI_WITH_VULKAN:BOOL=ON @@ -424,7 +424,7 @@ jobs: - uses: actions/setup-python@v4 with: - python-version: 3.7 + python-version: 3.12 - name: Build if: ${{ needs.check_files.outputs.run_job != 'false' }} @@ -465,7 +465,7 @@ jobs: matrix: include: - os: macos-latest - python: 3.8 + python: 3.12 defaults: run: # https://github.com/actions/runner/issues/805#issuecomment-844426478 @@ -568,7 +568,7 @@ jobs: timeout-minutes: ${{ github.event.schedule != '0 18 * * *' && 90 || 120 }} runs-on: [self-hosted, Linux, cuda, vulkan, cn] env: - PY: '3.8' + PY: '3.12' PROJECT_NAME: taichi TI_WANTED_ARCHS: 'cpu,cuda,vulkan,opengl,gles' TI_DEVICE_MEMORY_GB: '1' @@ -643,7 +643,7 @@ jobs: contents: read env: REDIS_HOST: 172.16.5.1 - PY: '3.9' + PY: '3.12' steps: - name: Workaround checkout Needed single revision issue run: git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD' || true @@ -722,7 +722,7 @@ jobs: contents: read env: REDIS_HOST: 172.16.5.1 - PY: '3.9' + PY: '3.12' steps: - name: Workaround checkout Needed single revision issue run: git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD' || true @@ -800,7 +800,7 @@ jobs: contents: read env: REDIS_HOST: 172.16.5.1 - PY: '3.9' + PY: '3.12' steps: - name: Workaround checkout Needed single revision issue run: git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD' || true @@ -891,7 +891,7 @@ jobs: - [self-hosted, cuda, vulkan, cn, driver470] - [self-hosted, cuda, vulkan, cn, driver510] env: - PY: '3.8' + PY: '3.12' PROJECT_NAME: taichi TAICHI_CMAKE_ARGS: >- -DTI_WITH_OPENGL:BOOL=ON