Skip to content
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

[build] Python 3.12 build #8392

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ jobs:
python: ${{ fromJSON(inputs.python) }}
_designated: ['']
exclude:
- python: "3.7"
- python: "3.12"
include:
- _designated: ''
designated: designated
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/initiator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand All @@ -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' }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading