[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 d9a4f5bdb8
commit b965bc9a78
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 - script: xb build --cpu_arch=$(cpu_arch) --target=src\xenia-app --target=src\xenia-vfs-dump
displayName: 'Build' displayName: 'Build'
- script: |- - pwsh: |-
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-canary xenia-canary.exe /r:0 /w:0 robocopy . build\bin\Windows\Release LICENSE /r:0 /w:0
robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-vfs-dump xenia-vfs-dump.exe /r:0 /w:0 robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-canary xenia-canary.exe LICENSE /r:0 /w:0
robocopy . $(Build.ArtifactStagingDirectory)\xenia-canary LICENSE /r:0 /w:0 robocopy build\bin\Windows\Release $(Build.ArtifactStagingDirectory)\xenia-vfs-dump xenia-vfs-dump.exe LICENSE /r:0 /w:0
robocopy . $(Build.ArtifactStagingDirectory)\xenia-canary-vfs-dump LICENSE /r:0 /w:0 If ($LastExitCode -le 7) { $LastExitCode = 0 }
IF %ERRORLEVEL% LEQ 7 (exit /b 0) ELSE (exit /b 1)
displayName: 'Prepare artifacts' displayName: 'Prepare artifacts'
- publish: $(Build.ArtifactStagingDirectory)\xenia-canary - publish: $(Build.ArtifactStagingDirectory)\xenia-canary

View File

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