-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor macos-arm64 into separate group
- Loading branch information
Showing
6 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Validate MacOS ARM64 Binaries | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
channel: | ||
description: "Channel to use (nightly, test, release, all)" | ||
required: true | ||
type: string | ||
ref: | ||
description: 'Reference to checkout, defaults to empty' | ||
default: "" | ||
required: false | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
channel: | ||
description: "Channel to use (nightly, test, release, all)" | ||
required: true | ||
type: choice | ||
options: | ||
- release | ||
- nightly | ||
- test | ||
- all | ||
ref: | ||
description: 'Reference to checkout, defaults to empty' | ||
default: "" | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
generate-macos-arm64-matrix: | ||
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main | ||
with: | ||
package-type: all | ||
os: macos-arm64 | ||
channel: ${{ inputs.channel }} | ||
macos-arm64: | ||
needs: generate-macos-arm64-matrix | ||
strategy: | ||
matrix: ${{ fromJson(needs.generate-macos-arm64-matrix.outputs.matrix) }} | ||
fail-fast: false | ||
uses: pytorch/test-infra/.github/workflows/macos_job.yml@main | ||
name: ${{ matrix.build_name }} | ||
with: | ||
runner: ${{ matrix.validation_runner }} | ||
repository: "pytorch/builder" | ||
ref: ${{ inputs.ref || github.ref }} | ||
job-name: ${{ matrix.build_name }} | ||
script: | | ||
set -ex | ||
export ENV_NAME="conda-env-${{ github.run_id }}" | ||
export GPU_ARCH_VER="${{ matrix.gpu_arch_version }}" | ||
export GPU_ARCH_TYPE="${{ matrix.gpu_arch_type }}" | ||
export INSTALLATION="${{ matrix.installation }}" | ||
export CUDA_VER="${{ matrix.desired_cuda }}" | ||
export DESIRED_PYTHON="${{ matrix.python_version }}" | ||
export DESIRED_CUDA="${{ matrix.desired_cuda }}" | ||
export PACKAGE_TYPE="${{ matrix.package_type }}" | ||
export TARGET_OS="macos-arm64" | ||
./.github/scripts/validate_binaries.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.