mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 17:41:09 +08:00
[vcpkg-ci] Always publish file lists (#12384)
Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
713950c89b
commit
bc07f4b052
@ -51,11 +51,11 @@ jobs:
|
||||
- bash: |
|
||||
python3 scripts/file_script.py /mnt/vcpkg-ci/installed/vcpkg/info/
|
||||
displayName: 'Build a file list for all packages'
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Upload file lists for all packages'
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
|
||||
inputs:
|
||||
PathtoPublish: scripts/list_files
|
||||
|
@ -55,11 +55,11 @@ jobs:
|
||||
- bash: |
|
||||
python3 scripts/file_script.py /Users/vagrant/Data/installed/vcpkg/info/
|
||||
displayName: 'Build a file list for all packages'
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Upload file lists for all packages'
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
|
||||
inputs:
|
||||
PathtoPublish: scripts/list_files
|
||||
|
@ -63,7 +63,7 @@ jobs:
|
||||
condition: failed()
|
||||
- task: PowerShell@2
|
||||
displayName: "Generating all packages files"
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
|
||||
inputs:
|
||||
targetType: inline
|
||||
@ -73,7 +73,7 @@ jobs:
|
||||
& $(.\vcpkg fetch python3) .\scripts\file_script.py D:\installed\vcpkg\info\
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: 'Upload file lists for all packages'
|
||||
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
|
||||
condition: always()
|
||||
inputs:
|
||||
PathtoPublish: scripts/list_files
|
||||
ArtifactName: "${{ parameters.triplet }} package file lists"
|
||||
|
@ -28,11 +28,14 @@ def main(path):
|
||||
except FileExistsError:
|
||||
print("Path already exists, continuing...")
|
||||
|
||||
headers = open("scripts/list_files/VCPKGHeadersDatabase.txt", mode='w')
|
||||
output = open("scripts/list_files/VCPKGDatabase.txt", mode='w')
|
||||
gen_all_file_strings(path, getFiles(path), headers, output)
|
||||
headers.close()
|
||||
output.close()
|
||||
try:
|
||||
headers = open("scripts/list_files/VCPKGHeadersDatabase.txt", mode='w')
|
||||
output = open("scripts/list_files/VCPKGDatabase.txt", mode='w')
|
||||
gen_all_file_strings(path, getFiles(path), headers, output)
|
||||
headers.close()
|
||||
output.close()
|
||||
except e:
|
||||
print("Failed to generate file lists")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main(sys.argv[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user