From f93343a6286493e2a4d5bc3cf2bfcbd9bf83e7b3 Mon Sep 17 00:00:00 2001 From: Omkar Salpekar Date: Thu, 27 Oct 2022 14:21:27 -0700 Subject: [PATCH 1/2] [Nova] Add Linux Wheels Build Workflow --- .github/workflows/build-wheels-linux.yml | 45 ++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/build-wheels-linux.yml diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml new file mode 100644 index 00000000000..361c1a723dc --- /dev/null +++ b/.github/workflows/build-wheels-linux.yml @@ -0,0 +1,45 @@ +name: Build Linux Wheels + +on: + pull_request: + push: + branches: + - nightly + workflow_dispatch: + +jobs: + generate-matrix: + uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main + with: + package-type: wheel + os: linux + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build: + needs: generate-matrix + strategy: + fail-fast: false + matrix: + include: + - repository: pytorch/vision + pre-script: "" + post-script: "" + # TODO: add smoke-test script here once merged. + package-name: torchvision + name: ${{ matrix.repository }} + uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main + with: + repository: ${{ matrix.repository }} + ref: "" + test-infra-repository: pytorch/test-infra + test-infra-ref: main + build-matrix: ${{ needs.generate-matrix.outputs.matrix }} + pre-script: ${{ matrix.pre-script }} + post-script: ${{ matrix.post-script }} + package-name: ${{ matrix.package-name }} + # Using "development" as trigger event so these binaries are not uploaded + # to official channels yet + trigger-event: development + secrets: + AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }} + AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }} From 9ad25eabeb113729f2b5c196bb44860546d7ffc5 Mon Sep 17 00:00:00 2001 From: Omkar Salpekar Date: Fri, 28 Oct 2022 10:56:38 -0700 Subject: [PATCH 2/2] Add smoke tests script --- .github/workflows/build-wheels-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-wheels-linux.yml b/.github/workflows/build-wheels-linux.yml index 361c1a723dc..d981a9781c2 100644 --- a/.github/workflows/build-wheels-linux.yml +++ b/.github/workflows/build-wheels-linux.yml @@ -24,7 +24,7 @@ jobs: - repository: pytorch/vision pre-script: "" post-script: "" - # TODO: add smoke-test script here once merged. + smoke-test-script: test/smoke_test.py package-name: torchvision name: ${{ matrix.repository }} uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main