Skip to content

Commit

Permalink
Making sure we are picking correct release branch (#2489) (#2491)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
atalman authored Jun 15, 2022
1 parent eb9a237 commit 2e13884
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-m1-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches:
- nightly
- release/*
tags:
# NOTE: Binary build pipelines should only get triggered on release candidate builds
# Release candidate tags look like: v1.11.0-rc1
Expand All @@ -30,6 +31,10 @@ jobs:
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
echo "CHANNEL=test" >> "$GITHUB_ENV"
fi
- name: Set Release CHANNEL (for release)
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: |
echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Build TorchAudio M1 wheel
shell: arch -arch arm64 bash {0}
env:
Expand Down Expand Up @@ -108,6 +113,10 @@ jobs:
if [[ ${GITHUB_REF_NAME} = *-rc[0-9]* ]]; then
echo "CHANNEL=test" >> "$GITHUB_ENV"
fi
- name: Set Release CHANNEL (for release)
if: ${{ (github.event_name == 'pull_request' && startsWith(github.base_ref, 'release')) || startsWith(github.ref, 'refs/heads/release') }}
run: |
echo "CHANNEL=test" >> "$GITHUB_ENV"
- name: Install conda-build and purge previous artifacts
shell: arch -arch arm64 bash {0}
run: |
Expand All @@ -132,8 +141,8 @@ jobs:
if [[ $CHANNEL == "test" ]]; then
setup_cuda
setup_base_build_version
export CONDA_CHANNEL_FLAGS="pytorch-test"
etup_macos
export CONDA_CHANNEL_FLAGS="-c pytorch-test"
setup_macos
else
setup_cuda
setup_build_version
Expand Down

0 comments on commit 2e13884

Please sign in to comment.