Skip to content

Commit fe0c8b1

Browse files
committed
readd accidentally removed linux build
1 parent e0be089 commit fe0c8b1

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Linux 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: linux
22+
test-infra-repository: pytorch/test-infra
23+
test-infra-ref: main
24+
with-cuda: disable
25+
build:
26+
needs: generate-matrix
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
include:
31+
- repository: pytorch/text
32+
pre-script: packaging/install_torchdata.sh
33+
post-script: ""
34+
conda-package-directory: packaging/torchtext
35+
smoke-test-script: test/smoke_tests/smoke_tests.py
36+
package-name: torchtext
37+
name: ${{ matrix.repository }}
38+
uses: pytorch/test-infra/.github/workflows/build_conda_linux.yml@main
39+
with:
40+
conda-package-directory: ${{ matrix.conda-package-directory }}
41+
repository: ${{ matrix.repository }}
42+
ref: ""
43+
test-infra-repository: pytorch/test-infra
44+
test-infra-ref: main
45+
build-matrix: ${{ needs.generate-matrix.outputs.matrix }}
46+
pre-script: ${{ matrix.pre-script }}
47+
post-script: ${{ matrix.post-script }}
48+
package-name: ${{ matrix.package-name }}
49+
smoke-test-script: ${{ matrix.smoke-test-script }}
50+
# Using "development" as trigger event so these binaries are not uploaded
51+
# to official channels yet
52+
trigger-event: ${{ github.event_name }}
53+
secrets:
54+
CONDA_PYTORCHBOT_TOKEN: ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
55+
CONDA_PYTORCHBOT_TOKEN_TEST: ${{ secrets.CONDA_PYTORCHBOT_TOKEN_TEST }}

0 commit comments

Comments
 (0)