refactor: remove error bypass, tweak powershell syntax

[skip changelog]
This commit is contained in:
Constrat
2024-12-31 18:04:18 +01:00
parent eacdf04006
commit 8b000e76dc

View File

@@ -102,10 +102,11 @@ jobs:
- name: Copy resource to build directory
if: steps.cache-exe.outputs.cache-hit == 'true'
continue-on-error: true
run: |
robocopy "resource" "x64/Debug/resource" /E /XD "Arknights-Tile-Pos" /MT:4 > $null
robocopy "resource/Arknights-Tile-Pos" "x64/Debug/resource/Arknights-Tile-Pos" "overview.json" > $null
(robocopy "resource" "x64/Debug/resource" /E /XD "Arknights-Tile-Pos" /MT:4 > $null);
if ($LASTEXITCODE -lt 2) { $global:LASTEXITCODE = $null }
(robocopy "resource/Arknights-Tile-Pos" "x64/Debug/resource/Arknights-Tile-Pos" "overview.json" > $null);
if ($LASTEXITCODE -lt 2) { $global:LASTEXITCODE= $null }
- name: Run tests
run: |