From e3a7c7a0c0ee7e5e25884ebee61fbf63d1a18ff6 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Thu, 5 Sep 2024 15:09:35 -0700 Subject: [PATCH] Download `pet` from azure pipeline build (#24052) --- build/azure-pipeline.pre-release.yml | 46 +++++++++++++++------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/build/azure-pipeline.pre-release.yml b/build/azure-pipeline.pre-release.yml index 56bed785588f..c6de846ee851 100644 --- a/build/azure-pipeline.pre-release.yml +++ b/build/azure-pipeline.pre-release.yml @@ -31,7 +31,6 @@ extends: ghCreateTag: false standardizedVersioning: true l10nSourcePaths: ./src/client - needsTools: true buildPlatforms: - name: Linux @@ -98,27 +97,30 @@ extends: - script: npx gulp prePublishBundle displayName: Build - - script: nox --session azure_pet_checkout - displayName: Checkout python-environment-tools - env: - PYTHON_ENV_TOOLS_DEST: $(Build.SourcesDirectory) - PYTHON_ENV_TOOLS_REF: main - PYTHON_ENV_TOOLS_TEMP: $(Agent.TempDirectory) - - - script: nox --session azure_pet_build_before - displayName: Enable cargo config for azure - - - template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates - parameters: - vsceTarget: $(vsceTarget) - binaryName: pet - signing: true - workingDirectory: $(Build.SourcesDirectory)/python-env-tools - buildWasm: false - runTest: false - - - script: nox --session azure_pet_build_after - displayName: Move bin to final location + - bash: | + mkdir -p $(Build.SourcesDirectory)/python-env-tools/bin + chmod +x $(Build.SourcesDirectory)/python-env-tools/bin + displayName: Make Directory for python-env-tool binary + + - task: DownloadPipelineArtifact@2 + inputs: + buildType: 'specific' + project: 'Monaco' + definition: 591 + buildVersionToDownload: 'latestFromBranch' + branchName: 'refs/heads/main' + targetPath: '$(Build.SourcesDirectory)/python-env-tools/bin' + artifactName: 'bin-$(vsceTarget)' + itemPattern: | + pet.exe + pet + ThirdPartyNotices.txt + + - bash: | + ls -lf ./python-env-tools/bin + chmod +x ./python-env-tools/bin/pet* + ls -lf ./python-env-tools/bin + displayName: Set chmod for pet binary - script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)" displayName: Clean up Nox