File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 7
7
branches :
8
8
- nightly
9
9
- main
10
+ - release/*
10
11
tags :
11
12
# NOTE: Binary build pipelines should only get triggered on release candidate builds
12
13
# Release candidate tags look like: v1.11.0-rc1
31
32
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
32
33
echo "CHANNEL=test" >> "$GITHUB_ENV"
33
34
fi
35
+ - name : Set Release CHANNEL (for release)
36
+ if : ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
37
+ run : |
38
+ echo "CHANNEL=test" >> "$GITHUB_ENV"
34
39
- name : Build TorchVision M1 wheel
35
40
shell : arch -arch arm64 bash {0}
36
41
env :
@@ -104,6 +109,10 @@ jobs:
104
109
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
105
110
echo "CHANNEL=test" >> "$GITHUB_ENV"
106
111
fi
112
+ - name : Set CHANNEL Release (for release)
113
+ if : ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
114
+ run : |
115
+ echo "CHANNEL=test" >> "$GITHUB_ENV"
107
116
- name : Install conda-build and purge previous artifacts
108
117
shell : arch -arch arm64 bash {0}
109
118
run : |
Original file line number Diff line number Diff line change 7
7
branches :
8
8
- nightly
9
9
- main
10
+ - release/*
10
11
workflow_dispatch :
12
+ env :
13
+ CHANNEL : " nightly"
11
14
jobs :
12
15
tests :
13
16
name : " Unit-tests on M1"
19
22
steps :
20
23
- name : Checkout repository
21
24
uses : actions/checkout@v2
25
+ - name : Set Release CHANNEL (for release)
26
+ if : ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'release') }}
27
+ run : |
28
+ echo "CHANNEL=test" >> "$GITHUB_ENV"
22
29
- name : Install TorchVision
23
30
shell : arch -arch arm64 bash {0}
24
31
env :
30
37
export PATH=~/miniconda3/bin:$PATH
31
38
set -ex
32
39
conda create -yp ${ENV_NAME} python=${PY_VERS} numpy libpng jpeg scipy
40
+ <<<<<<< HEAD
33
41
conda run -p ${ENV_NAME} python3 -mpip install torch --extra-index-url=https://download.pytorch.org/whl/nightly
42
+ =======
43
+ conda run -p ${ENV_NAME} python3 -mpip install --pre torch --extra-index-url=https://download.pytorch.org/whl/${CHANNEL}
44
+ >>>>>>> 369317f45 (Make sure we are building against test channel for release (#6168))
34
45
conda run -p ${ENV_NAME} python3 setup.py develop
35
46
conda run -p ${ENV_NAME} python3 -mpip install pytest pytest-mock av
36
47
- name : Run tests
You can’t perform that action at this time.
0 commit comments