forked from conda-forge/staged-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines-win.yml
executable file
·36 lines (34 loc) · 1.11 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
jobs:
- job: win_64
condition: not(eq(variables['Build.SourceBranch'], 'refs/heads/main'))
pool:
vmImage: windows-2022
strategy:
maxParallel: 4
matrix:
win:
CONFIG: win64
timeoutInMinutes: 360
steps:
- task: PythonScript@0
displayName: 'Download Miniforge'
inputs:
scriptSource: inline
script: |
import urllib.request
url = 'https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Windows-x86_64.exe'
path = r"$(Build.ArtifactStagingDirectory)/Miniforge.exe"
urllib.request.urlretrieve(url, path)
- script: |
start /wait "" %BUILD_ARTIFACTSTAGINGDIRECTORY%\Miniforge.exe /InstallationType=JustMe /RegisterPython=0 /S /D=C:\Miniforge
displayName: Install Miniforge
- powershell: Write-Host "##vso[task.prependpath]C:\Miniforge\Scripts"
displayName: Add conda to PATH
- script: |
call .scripts\run_win_build.bat
displayName: Build recipes
env:
CI: azure
CONDA_BLD_PATH: C:\bld
- publish: C:\\bld\\win-64\\
artifact: conda_pkgs_win