Skip to content

Commit 9e9ca1f

Browse files
committed
[NovaX] MacOs x86 Builds on GHA Nova
1 parent bddf384 commit 9e9ca1f

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Macos Conda
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
tags:
11+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12+
# Release candidate tags look like: v1.11.0-rc1
13+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+
workflow_dispatch:
15+
16+
jobs:
17+
generate-matrix:
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19+
with:
20+
package-type: conda
21+
os: macos
22+
test-infra-repository: pytorch/test-infra
23+
test-infra-ref: main
24+
build:
25+
needs: generate-matrix
26+
name: pytorch/data
27+
uses: pytorch/test-infra/.github/workflows/build_conda_macos.yml@main
28+
with:
29+
conda-package-directory: packaging/torchdata
30+
repository: pytorch/data
31+
ref: ""
32+
test-infra-repository: pytorch/test-infra
33+
test-infra-ref: main
34+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
35+
pre-script: ""
36+
post-script: ""
37+
package-name: torchdata
38+
smoke-test-script: test/smoke_test.py
39+
runner-type: macos-12
40+
trigger-event: dev
41+
secrets:
42+
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build Macos Wheels
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- nightly
8+
- main
9+
- release/*
10+
tags:
11+
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12+
# Release candidate tags look like: v1.11.0-rc1
13+
- v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+
14+
workflow_dispatch:
15+
16+
jobs:
17+
generate-matrix:
18+
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
19+
with:
20+
package-type: wheel
21+
os: macos
22+
test-infra-repository: pytorch/test-infra
23+
test-infra-ref: main
24+
build:
25+
needs: generate-matrix
26+
name: pytorch/data
27+
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
28+
with:
29+
repository: pytorch/data
30+
ref: ""
31+
test-infra-repository: pytorch/test-infra
32+
test-infra-ref: main
33+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
34+
pre-script: ""
35+
post-script: ""
36+
package-name: torchdata
37+
runner-type: macos-12
38+
smoke-test-script: test/smoke_test.py
39+
trigger-event: dev
40+
secrets:
41+
AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID: ${{ secrets.AWS_PYTORCH_UPLOADER_ACCESS_KEY_ID }}
42+
AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY: ${{ secrets.AWS_PYTORCH_UPLOADER_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)