Skip to content

Commit 2e13884

Browse files
authored
Making sure we are picking correct release branch (#2489) (#2491)
* Making sure we are picking correct release branch (#2489) Summary: Making sure we are picking correct release branch Ref: pytorch/vision#6168 Pull Request resolved: #2489 Reviewed By: mthrok Differential Revision: D37160145 Pulled By: atalman fbshipit-source-id: 3e4a2208cbe47f85147573159f9adb8d6a824956 * Fix push on release reference name (#2492) Summary: Fix push on release reference name We want to compare it against refs/heads/release rather then release Tests: atalman/vision@af17cd9 Sets correctly release chanell (wheels): https://github.com/atalman/vision/runs/6901327010?check_suite_focus=true Pull Request resolved: #2492 Reviewed By: hwangjeff Differential Revision: D37174090 Pulled By: atalman fbshipit-source-id: e114972935572a701eb7daff429a0df0ed5a75e4 * Fix typo in release build step (#2495) Summary: Fix typo in release build step Pull Request resolved: #2495 Reviewed By: hwangjeff Differential Revision: D37176695 Pulled By: atalman fbshipit-source-id: 37b4e30c1084e506f3a45cf7427784c955868909 * Making sure channel flag is set correctly
1 parent eb9a237 commit 2e13884

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build-m1-binaries.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- nightly
9+
- release/*
910
tags:
1011
# NOTE: Binary build pipelines should only get triggered on release candidate builds
1112
# Release candidate tags look like: v1.11.0-rc1
@@ -30,6 +31,10 @@ jobs:
3031
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
3132
echo "CHANNEL=test" >> "$GITHUB_ENV"
3233
fi
34+
- name: Set Release CHANNEL (for release)
35+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
36+
run: |
37+
echo "CHANNEL=test" >> "$GITHUB_ENV"
3338
- name: Build TorchAudio M1 wheel
3439
shell: arch -arch arm64 bash {0}
3540
env:
@@ -108,6 +113,10 @@ jobs:
108113
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
109114
echo "CHANNEL=test" >> "$GITHUB_ENV"
110115
fi
116+
- name: Set Release CHANNEL (for release)
117+
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
118+
run: |
119+
echo "CHANNEL=test" >> "$GITHUB_ENV"
111120
- name: Install conda-build and purge previous artifacts
112121
shell: arch -arch arm64 bash {0}
113122
run: |
@@ -132,8 +141,8 @@ jobs:
132141
if [[ $CHANNEL == "test" ]]; then
133142
setup_cuda
134143
setup_base_build_version
135-
export CONDA_CHANNEL_FLAGS="pytorch-test"
136-
etup_macos
144+
export CONDA_CHANNEL_FLAGS="-c pytorch-test"
145+
setup_macos
137146
else
138147
setup_cuda
139148
setup_build_version

0 commit comments

Comments
 (0)