Skip to content

Commit e3a7c7a

Browse files
authored
Download pet from azure pipeline build (#24052)
1 parent ef7c7e3 commit e3a7c7a

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

build/azure-pipeline.pre-release.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ extends:
3131
ghCreateTag: false
3232
standardizedVersioning: true
3333
l10nSourcePaths: ./src/client
34-
needsTools: true
3534

3635
buildPlatforms:
3736
- name: Linux
@@ -98,27 +97,30 @@ extends:
9897
- script: npx gulp prePublishBundle
9998
displayName: Build
10099

101-
- script: nox --session azure_pet_checkout
102-
displayName: Checkout python-environment-tools
103-
env:
104-
PYTHON_ENV_TOOLS_DEST: $(Build.SourcesDirectory)
105-
PYTHON_ENV_TOOLS_REF: main
106-
PYTHON_ENV_TOOLS_TEMP: $(Agent.TempDirectory)
107-
108-
- script: nox --session azure_pet_build_before
109-
displayName: Enable cargo config for azure
110-
111-
- template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
112-
parameters:
113-
vsceTarget: $(vsceTarget)
114-
binaryName: pet
115-
signing: true
116-
workingDirectory: $(Build.SourcesDirectory)/python-env-tools
117-
buildWasm: false
118-
runTest: false
119-
120-
- script: nox --session azure_pet_build_after
121-
displayName: Move bin to final location
100+
- bash: |
101+
mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin
102+
chmod +x $(Build.SourcesDirectory)/python-env-tools/bin
103+
displayName: Make Directory for python-env-tool binary
104+
105+
- task: DownloadPipelineArtifact@2
106+
inputs:
107+
buildType: 'specific'
108+
project: 'Monaco'
109+
definition: 591
110+
buildVersionToDownload: 'latestFromBranch'
111+
branchName: 'refs/heads/main'
112+
targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin'
113+
artifactName: 'bin-$(vsceTarget)'
114+
itemPattern: |
115+
pet.exe
116+
pet
117+
ThirdPartyNotices.txt
118+
119+
- bash: |
120+
ls -lf ./python-env-tools/bin
121+
chmod +x ./python-env-tools/bin/pet*
122+
ls -lf ./python-env-tools/bin
123+
displayName: Set chmod for pet binary
122124
123125
- script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
124126
displayName: Clean up Nox

0 commit comments

Comments
 (0)