[Azure Pipelines+GitHub Actions] Yet moar changes

Save one robocopy by copying LICENSE to the build folder instead of copying it twice.

Azure Pipelines:
 Switch artifact preparation to PowerShell to be consistent with GitHub Actions.
This commit is contained in:
Margen67 2020-03-17 10:32:34 -07:00 committed by illusion
parent b5b2eb73c4
commit 5d4c8d92fb
2 changed files with 9 additions and 11 deletions

View File

@ -52,12 +52,11 @@ jobs:
- script: xb build --cpu_arch=$(cpu_arch) --target=src\xenia-app --target=src\xenia-vfs-dump
displayName: 'Build'
- script: |-
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-canary xenia-canary.exe /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-vfs-dump xenia-vfs-dump.exe /r:0 /w:0
robocopy . $(Build.ArtifactStagingDirectory)\xenia-canary LICENSE /r:0 /w:0
robocopy . $(Build.ArtifactStagingDirectory)\xenia-canary-vfs-dump LICENSE /r:0 /w:0
IF %ERRORLEVEL% LEQ 7 (exit /b 0) ELSE (exit /b 1)
- pwsh: |-
robocopy . build\bin\Windows\Release LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-canary xenia-canary.exe LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-vfs-dump xenia-vfs-dump.exe LICENSE /r:0 /w:0
If ($LastExitCode -le 7) { $LastExitCode = 0 }
displayName: 'Prepare artifacts'
- publish: $(Build.ArtifactStagingDirectory)\xenia-canary

View File

@ -51,11 +51,10 @@ jobs:
- name: Prepare artifacts
run: |
robocopy build\bin\Windows\Release artifacts\xenia-canary xenia-canary.exe /r:0 /w:0
robocopy build\bin\Windows\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe /r:0 /w:0
robocopy . artifacts\xenia-canary LICENSE /r:0 /w:0
robocopy . artifacts\xenia-canary-vfs-dump LICENSE /r:0 /w:0
If ($LastExitCode -lt 8) { $LastExitCode = 0 }
robocopy . build\bin\Windows\Release LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release artifacts\xenia-canary xenia-canary.exe LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release artifacts\xenia-vfs-dump xenia-vfs-dump.exe LICENSE /r:0 /w:0
If ($LastExitCode -le 7) { $LastExitCode = 0 }
7z a -mx1 xenia-canary.zip LICENSE .\artifacts\xenia-canary\*.exe
- name: Upload xenia-canary artifacts