-
Notifications
You must be signed in to change notification settings - Fork 82
98 lines (96 loc) · 3.15 KB
/
build_conda_macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build MacOS Conda
on:
workflow_call:
inputs:
conda-package-directory:
description: 'Directory where your meta.yaml for your conda package lives'
required: true
type: string
repository:
description: 'Repository to checkout, defaults to ""'
default: ""
type: string
ref:
description: 'Reference to checkout, defaults to "nightly"'
default: "nightly"
type: string
test-infra-repository:
description: "Test infra repository to use"
default: "pytorch/test-infra"
type: string
test-infra-ref:
description: "Test infra reference to use"
default: ""
type: string
build-matrix:
description: "Build matrix to utilize"
default: ""
type: string
pre-script:
description: "Pre script to run prior to build"
default: ""
type: string
post-script:
description: "Post script to run prior to build"
default: ""
type: string
runner-type:
description: "Runner environment specified."
default: ""
type: string
package-name:
description: "Name of the actual python package that is imported"
default: ""
type: string
env-var-script:
description: "Script that sets Domain-Specific Environment Variables"
default: ""
type: string
trigger-event:
description: "Trigger Event in caller that determines whether or not to upload"
default: ""
type: string
smoke-test-script:
description: "Script for Smoke Test for a specific domain"
default: ""
type: string
cache-path:
description: "The path(s) on the runner to cache or restore. The path is relative to repository."
default: ""
type: string
cache-key:
description: "The key created when saving a cache and the key used to search for a cache."
default: ""
type: string
timeout:
description: 'Timeout for the job (in minutes)'
default: 60
type: number
secrets:
CONDA_PYTORCHBOT_TOKEN:
description: "Access Token needed to upload binaries to anaconda nightly channel"
required: false
CONDA_PYTORCHBOT_TOKEN_TEST:
description: "Access Token needed to upload binaries to anaconda test channel"
required: false
jobs:
build:
strategy:
fail-fast: false
matrix: ${{ fromJSON(inputs.build-matrix) }}
env:
CONDA_PACKAGE_DIRECTORY: ${{ inputs.conda-package-directory }}
PYTHON_VERSION: ${{ matrix.python_version }}
PACKAGE_TYPE: conda
REPOSITORY: ${{ inputs.repository }}
REF: ${{ inputs.ref }}
CU_VERSION: cpu
name: ${{ matrix.build_name }}
runs-on: ubuntu-latest
# If a build is taking longer than 60 minutes on these runners we need
# to have a conversation
timeout-minutes: 3
steps:
- name: Conda builds are deprecated, see https://github.com/pytorch/pytorch/issues/138506
run: |
echo "No more conda builds, see https://github.com/pytorch/pytorch/issues/138506"