perf: manual recursion + robocopy for smoke-testing (#11458)

This commit is contained in:
Constrat
2024-12-30 10:03:41 +01:00
committed by GitHub
parent 3a01a7f50c
commit f8b1ce122a
3 changed files with 30 additions and 6 deletions

View File

@@ -120,7 +120,10 @@ jobs:
uses: actions/checkout@v4
with:
show-progress: false
submodules: recursive
- name: Fetch submodules
run: |
git submodule update --init --depth 1 3rdparty/EmulatorExtras
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget
@@ -219,7 +222,11 @@ jobs:
uses: actions/checkout@v4
with:
show-progress: false
submodules: recursive
- name: Fetch submodules
run: |
git submodule update --init --depth 1 3rdparty/EmulatorExtras
git submodule update --init --depth 1 src/maa-cli
- name: Install cross compile toolchains
if: ${{ matrix.arch != 'x86_64' }}
@@ -376,7 +383,10 @@ jobs:
uses: actions/checkout@v4
with:
show-progress: false
submodules: recursive
- name: Fetch submodules
run: |
git submodule update --init --depth 1 src/MaaMacGui
- name: Download Arm64 MAA from Github
uses: actions/download-artifact@v4

View File

@@ -42,10 +42,13 @@ jobs:
- uses: actions/checkout@v4
with:
# repository: 'MaaAssistantArknights/MaaAssistantArknights'
submodules: recursive
#ref: ${{ inputs.ref }}
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 60
- name: Fetch submodules
run: |
git submodule update --init --depth 1 3rdparty/EmulatorExtras
- name: Checkout ref (if provided)
if: inputs.ref != ''

View File

@@ -41,7 +41,6 @@ jobs:
uses: actions/checkout@v4
with:
show-progress: false
submodules: recursive
- name: Cache smoke-testing Sample.exe
id: cache-exe
@@ -55,6 +54,11 @@ jobs:
./x64/Debug/onnxruntime_maa.dll
./x64/Debug/opencv_world4d_maa.dll
- name: Fetch submodules
if: steps.cache-exe.outputs.cache-hit != 'true'
run: |
git submodule update --init --depth 1 3rdparty/EmulatorExtras
- name: Cache .nuke/temp, ~/.nuget/packages
if: steps.cache-exe.outputs.cache-hit != 'true'
id: cache-nuget
@@ -96,6 +100,13 @@ jobs:
run: |
MSBUILD src/Cpp/MaaSample.slnf -t:restore,build -p:Configuration="Debug" -p:Platform="x64" -m
- 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
- name: Run tests
run: |
pwsh tools/SmokeTesting/run_tests.ps1