Skip to content

Commit b2b2577

Browse files
committed
Switch to Nova build jobs and cleanup AWS credentials (#1217)
* Enable Python 3.12 build for torchdata * Minor push to run all builds * Build conda 3.12 with conda-build in 3.9 * Install setuptools for 3.12 * Use the correct conda env * Figure it out * Clean up obsolete workflows * Clean up AWS credentials
1 parent b565dc1 commit b2b2577

9 files changed

+12
-670
lines changed

.github/workflows/_build_test_upload.yml

-555
This file was deleted.

.github/workflows/build-conda-m1.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ jobs:
3838
env-var-script: packaging/env-var-script.txt
3939
smoke-test-script: test/smoke_test/smoke_test.py
4040
runner-type: macos-m1-12
41-
trigger-event: dev
41+
trigger-event: ${{ github.event_name }}
4242
secrets:
4343
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}

.github/workflows/build-wheels-m1.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1414
workflow_dispatch:
1515

16+
permissions:
17+
id-token: write
18+
contents: read
19+
1620
jobs:
1721
generate-matrix:
1822
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
@@ -37,7 +41,4 @@ jobs:
3741
env-var-script: packaging/env-var-script.txt
3842
runner-type: macos-m1-12
3943
smoke-test-script: test/smoke_test/smoke_test.py
40-
trigger-event: dev
41-
secrets:
42-
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
43-
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}
44+
trigger-event: ${{ github.event_name }}

.github/workflows/build_conda_linux.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ jobs:
4949
smoke-test-script: ${{ matrix.smoke-test-script }}
5050
package-name: ${{ matrix.package-name }}
5151
env-var-script: packaging/env-var-script.txt
52-
# Using "development" as trigger event so these binaries are not uploaded
53-
# to official channels yet
54-
trigger-event: development
52+
trigger-event: ${{ github.event_name }}
5553
secrets:
5654
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}

.github/workflows/build_wheels_linux.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
1414
workflow_dispatch:
1515

16+
permissions:
17+
id-token: write
18+
contents: read
19+
1620
jobs:
1721
generate-matrix:
1822
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
@@ -47,8 +51,4 @@ jobs:
4751
smoke-test-script: ${{ matrix.smoke-test-script }}
4852
package-name: ${{ matrix.package-name }}
4953
env-var-script: packaging/env-var-script.txt
50-
# Using "development" as trigger event so these binaries are not uploaded to official channels yet
51-
trigger-event: development
52-
secrets:
53-
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.PYTORCH_BINARY_AWS_ACCESS_KEY_ID }}
54-
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.PYTORCH_BINARY_AWS_SECRET_ACCESS_KEY }}
54+
trigger-event: ${{ github.event_name }}

.github/workflows/nightly_release.yml

-20
This file was deleted.

.github/workflows/pull_release.yml

-22
This file was deleted.

.github/workflows/release.yml

-24
This file was deleted.

.github/workflows/test_release.yml

-36
This file was deleted.

0 commit comments

Comments
 (0)