-
Notifications
You must be signed in to change notification settings - Fork 84
94 lines (92 loc) · 3.02 KB
/
build_conda_windows.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
name: Build Windows Conda
on:
workflow_call:
inputs:
runner-type:
description: "Runner type"
default: ""
type: string
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
package-name:
description: "Name of the actual python package that is imported"
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: ${{ matrix.desired_cuda }}
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"