From f94a5b21eb0ab72851796a69ad5db165bd13d19c Mon Sep 17 00:00:00 2001 From: Haard Shah Date: Thu, 20 Jun 2024 22:42:12 -0400 Subject: [PATCH] fix windows packaging --- .github/workflows/release-azure-pipelines.yml | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-azure-pipelines.yml b/.github/workflows/release-azure-pipelines.yml index 570ca980..ada04c21 100644 --- a/.github/workflows/release-azure-pipelines.yml +++ b/.github/workflows/release-azure-pipelines.yml @@ -240,6 +240,13 @@ extends: MaxConcurrency: '50' MaxRetryAttempts: '5' PendingAnalysisWaitTimeoutMinutes: '5' + - task: PowerShell@2 + displayName: 'List files' + inputs: + workingDirectory: $(Pipeline.Workspace) + targetType: 'inline' + script: | + Get-ChildItem -Path . -Recurse | Select-Object FullName - task: ExtractFiles@1 displayName: Extract signed artifacts osx condition: startsWith('${{ config.runtime }}', 'osx') @@ -277,16 +284,16 @@ extends: outputs: - ${{ each config in parameters.buildConfigs }}: - output: pipelineArtifact - artifactName: azureauth-${{ parameters.version }}-${{ config.runtime }}.${{ config.archiveExt }} - targetPath: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-${{ config.runtime }}.${{ config.archiveExt }} + artifactName: azureauth-${{ parameters.version }}-${{ config.runtime }}-packaged.${{ config.archiveExt }} + targetPath: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-${{ config.runtime }}-packaged.${{ config.archiveExt }} steps: - task: ArchiveFiles@2 displayName: Create win10-x64 archive inputs: - rootFolderOrFile: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-win10-x64 + rootFolderOrFile: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-win10-x64-signed includeRootFolder: false archiveType: zip - archiveFile: azureauth-${{ parameters.version }}-win10-x64.zip + archiveFile: azureauth-${{ parameters.version }}-win10-x64-packaged.zip - task: Bash@3 displayName: Prepare osx-x64 executables inputs: @@ -302,13 +309,13 @@ extends: rootFolderOrFile: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-osx-x64 includeRootFolder: false archiveType: tar - archiveFile: azureauth-${{ parameters.version }}-osx-x64.tar + archiveFile: azureauth-${{ parameters.version }}-osx-x64-packaged.tar - task: Bash@3 displayName: Prepare osx-arm64 executables inputs: targetType: inline script: | - cd ../azureauth-${{ parameters.version }}-osx-arm64 + cd ../azureauth-${{ parameters.version }}-osx-arm64-packaged chmod +x azureauth createdump *.dylib - task: ArchiveFiles@2 displayName: Create osx-arm64 archive @@ -316,7 +323,7 @@ extends: rootFolderOrFile: $(Pipeline.Workspace)/azureauth-${{ parameters.version }}-osx-arm64 includeRootFolder: false archiveType: tar - archiveFile: azureauth-${{ parameters.version }}-osx-arm64.tar + archiveFile: azureauth-${{ parameters.version }}-osx-arm64-packaged.tar # - stage: release # displayName: Release