[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:
parent
d9a4f5bdb8
commit
b965bc9a78
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue