Skip to content

Commit a20d2e9

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] [Nova] Add Linux Wheels Build Workflow (#6855)
Summary: * [Nova] Add Linux Wheels Build Workflow * Add smoke tests script Reviewed By: datumbox Differential Revision: D40851029 fbshipit-source-id: 600de7bcfe855bda29c3747c8b7b0a0af7722115
1 parent 6b34b42 commit a20d2e9

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build Linux Wheels
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
workflow_dispatch:
9+
10+
jobs:
11+
generate-matrix:
12+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
13+
with:
14+
package-type: wheel
15+
os: linux
16+
test-infra-repository: pytorch/test-infra
17+
test-infra-ref: main
18+
build:
19+
needs: generate-matrix
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
include:
24+
- repository: pytorch/vision
25+
pre-script: ""
26+
post-script: ""
27+
smoke-test-script: test/smoke_test.py
28+
package-name: torchvision
29+
name: ${{ matrix.repository }}
30+
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
31+
with:
32+
repository: ${{ matrix.repository }}
33+
ref: ""
34+
test-infra-repository: pytorch/test-infra
35+
test-infra-ref: main
36+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
37+
pre-script: ${{ matrix.pre-script }}
38+
post-script: ${{ matrix.post-script }}
39+
package-name: ${{ matrix.package-name }}
40+
# Using "development" as trigger event so these binaries are not uploaded
41+
# to official channels yet
42+
trigger-event: development
43+
secrets:
44+
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
45+
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)