|
34 | 34 | if: github.repository_owner == 'taichi-dev'
|
35 | 35 | runs-on: ubuntu-latest
|
36 | 36 | steps:
|
37 |
| - - uses: actions/checkout@v3 |
| 37 | + - uses: actions/checkout@v4 |
38 | 38 |
|
39 | 39 | - name: Save new version
|
40 | 40 | run: |
|
|
85 | 85 | -DTI_BUILD_TESTS:BOOL=ON
|
86 | 86 |
|
87 | 87 | steps:
|
88 |
| - - uses: actions/checkout@v3 |
| 88 | + - uses: actions/checkout@v4 |
| 89 | + with: |
| 90 | + submodules: 'recursive' |
| 91 | + fetch-depth: '0' |
| 92 | + |
| 93 | + - name: Prepare Environment |
| 94 | + run: | |
| 95 | + . .github/workflows/scripts/common-utils.sh |
| 96 | + prepare-build-cache |
| 97 | + echo CI_DOCKER_RUN_EXTRA_ARGS="-v $(pwd):/home/dev/taichi" >> $GITHUB_ENV |
| 98 | +
|
| 99 | + - name: Build |
| 100 | + run: | |
| 101 | + . .github/workflows/scripts/common-utils.sh |
| 102 | +
|
| 103 | + ci-docker-run-gpu --name taichi-build \ |
| 104 | + registry.botmaster.tgr/taichi-build-cuda:${{ env.CI_IMAGE_VERSION }} \ |
| 105 | + /home/dev/taichi/.github/workflows/scripts/build.py $NIGHTLY |
| 106 | +
|
| 107 | + - name: Archive Wheel Artifacts |
| 108 | + uses: actions/upload-artifact@v3 |
| 109 | + with: |
| 110 | + name: dist |
| 111 | + path: dist/*.whl |
| 112 | + retention-days: 20 |
| 113 | + |
| 114 | + - name: Test |
| 115 | + run: | |
| 116 | + . .github/workflows/scripts/common-utils.sh |
| 117 | +
|
| 118 | + ci-docker-run-gpu --name taichi-test \ |
| 119 | + registry.botmaster.tgr/taichi-test-cuda:${{ env.CI_IMAGE_VERSION }} \ |
| 120 | + /home/dev/taichi/.github/workflows/scripts/unix_test.sh |
| 121 | + env: |
| 122 | + PY: ${{ matrix.python }} |
| 123 | + |
| 124 | + build_and_test_linux_arm: |
| 125 | + name: Build and Upload (linux Arm only) |
| 126 | + needs: matrix_prep |
| 127 | + strategy: |
| 128 | + fail-fast: false |
| 129 | + matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }} |
| 130 | + runs-on: [ ubuntu24.04-arm, cuda, vulkan, cn, release, sm70 ] |
| 131 | + env: |
| 132 | + PY: ${{ matrix.python }} |
| 133 | + PROJECT_NAME: ${{ matrix.name }} |
| 134 | + TAICHI_CMAKE_ARGS: >- |
| 135 | + -DTI_WITH_OPENGL:BOOL=ON |
| 136 | + -DTI_WITH_VULKAN:BOOL=ON |
| 137 | + -DTI_BUILD_TESTS:BOOL=ON |
| 138 | +
|
| 139 | + steps: |
| 140 | + - uses: actions/checkout@v4 |
89 | 141 | with:
|
90 | 142 | submodules: 'recursive'
|
91 | 143 | fetch-depth: '0'
|
@@ -136,7 +188,7 @@ jobs:
|
136 | 188 | # -DTI_WITH_OPENGL:BOOL=OFF
|
137 | 189 | # -DTI_BUILD_TESTS:BOOL=ON
|
138 | 190 | # steps:
|
139 |
| - # - uses: actions/checkout@v3 |
| 191 | + # - uses: actions/checkout@v4 |
140 | 192 | # with:
|
141 | 193 | # submodules: 'recursive'
|
142 | 194 | # fetch-depth: '0'
|
@@ -188,7 +240,7 @@ jobs:
|
188 | 240 | -DTI_BUILD_TESTS:BOOL=ON
|
189 | 241 |
|
190 | 242 | steps:
|
191 |
| - - uses: actions/checkout@v3 |
| 243 | + - uses: actions/checkout@v4 |
192 | 244 | with:
|
193 | 245 | submodules: 'recursive'
|
194 | 246 | fetch-depth: '0'
|
@@ -243,12 +295,12 @@ jobs:
|
243 | 295 | git config --system core.longpaths true
|
244 | 296 | git submodule foreach 'git rev-parse HEAD > /dev/null 2>&1 || rm -rf $PWD'
|
245 | 297 |
|
246 |
| - - uses: actions/checkout@v3 |
| 298 | + - uses: actions/checkout@v4 |
247 | 299 | with:
|
248 | 300 | submodules: 'recursive'
|
249 | 301 | fetch-depth: '0'
|
250 | 302 |
|
251 |
| - - uses: actions/setup-python@v4 |
| 303 | + - uses: actions/setup-python@v5 |
252 | 304 | with:
|
253 | 305 | python-version: ${{ matrix.python }}
|
254 | 306 |
|
@@ -289,11 +341,11 @@ jobs:
|
289 | 341 |
|
290 | 342 | upload_to_pypi:
|
291 | 343 | name: Upload release to PyPI
|
292 |
| - needs: [build_and_test_linux, build_and_test_m1, build_and_test_windows] |
| 344 | + needs: [build_and_test_linux, build_and_test_m1, build_and_test_windows, build_and_test_linux_arm] |
293 | 345 | runs-on: ubuntu-latest
|
294 | 346 | steps:
|
295 |
| - - uses: actions/checkout@v3 |
296 |
| - - uses: actions/setup-python@v4 |
| 347 | + - uses: actions/checkout@v4 |
| 348 | + - uses: actions/checkout@v5 |
297 | 349 | with:
|
298 | 350 | python-version: 3.9
|
299 | 351 |
|
@@ -331,11 +383,11 @@ jobs:
|
331 | 383 | runs-on: ubuntu-latest
|
332 | 384 | if: ${{ github.event.inputs.version }}
|
333 | 385 | steps:
|
334 |
| - - uses: actions/checkout@v3 |
| 386 | + - uses: actions/checkout@v4 |
335 | 387 | with:
|
336 | 388 | fetch-depth: 0
|
337 | 389 |
|
338 |
| - - uses: actions/setup-python@v4 |
| 390 | + - uses: actions/checkout@v5 |
339 | 391 | with:
|
340 | 392 | python-version: 3.9
|
341 | 393 |
|
|
0 commit comments