forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-win.yml
executable file
·59 lines (51 loc) · 1.76 KB
/
azure-pipelines-win.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
jobs:
- job: win_64
condition: not(eq(variables['Build.SourceBranch'], 'refs/heads/main'))
pool:
vmImage: windows-2019
strategy:
maxParallel: 4
matrix:
win:
CONFIG: win64
CF_MAX_PY_VER: 37
timeoutInMinutes: 360
steps:
- task: CondaEnvironment@1
inputs:
packageSpecs: 'python=3.9 conda-build>=3.18 conda>4.7.12 conda-forge::conda-forge-ci-setup=3 networkx=2.4 conda-forge-pinning boa' # Optional
installOptions: "-c conda-forge"
updateConda: true
displayName: Install conda-build and activate environment
- script: set PYTHONUNBUFFERED=1
displayName: Set PYTHONUNBUFFERED
# Configure the VM
- script: |
call activate base
setup_conda_rc .\ ".\recipes" .\.ci_support\%CONFIG%.yaml
displayName: conda-forge CI setup
# Configure the VM.
- script: |
set "CI=azure"
call activate base
run_conda_forge_build_setup
displayName: conda-forge build setup
# Find the recipes from main in this PR and remove them.
- script: |
git fetch --force origin main:main
cd recipes
for /f "tokens=*" %%a in ('git ls-tree --name-only main -- .') do rmdir /s /q %%a && echo Removing recipe: %%a
cd ..
- script: |
REM make sure there is a package directory so that artifact publishing works
setlocal enableextensions
if not exist C:\\bld\\win-64\\ mkdir C:\\bld\\win-64\\
displayName: Make artifact dir
# Special cased version setting some more things!
- script: |
call activate base
git fetch --force origin main:main
python .ci_support\build_all.py --arch 64
displayName: Build recipe
- publish: C:\\bld\\win-64\\
artifact: conda_pkgs_win