mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
* ci: bump the github-actions group across 1 directory with 7 updates Bumps the github-actions group with 7 updates in the /.github/workflows directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4` | `5` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `4` | `5` | | [softprops/action-gh-release](https://github.com/softprops/action-gh-release) | `2.3.2` | `2.3.3` | | [actions/github-script](https://github.com/actions/github-script) | `7` | `8` | | [actions/setup-python](https://github.com/actions/setup-python) | `5` | `6` | | [actions/stale](https://github.com/actions/stale) | `9` | `10` | | [actions/setup-node](https://github.com/actions/setup-node) | `4` | `5` | Updates `actions/checkout` from 4 to 5 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) Updates `actions/download-artifact` from 4 to 5 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v5) Updates `softprops/action-gh-release` from 2.3.2 to 2.3.3 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.2...v2.3.3) Updates `actions/github-script` from 7 to 8 - [Release notes](https://github.com/actions/github-script/releases) - [Commits](https://github.com/actions/github-script/compare/v7...v8) Updates `actions/setup-python` from 5 to 6 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v5...v6) Updates `actions/stale` from 9 to 10 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v9...v10) Updates `actions/setup-node` from 4 to 5 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: softprops/action-gh-release dependency-version: 2.3.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/github-script dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-version: '10' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * ci: fix schema --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Constrat <56174894+Constrat@users.noreply.github.com>
119 lines
3.4 KiB
YAML
119 lines
3.4 KiB
YAML
name: smoke-testing
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "3rdparty/include/**"
|
|
- "include/**"
|
|
- "src/Cpp/**"
|
|
- "src/MaaCore/**"
|
|
- "resource/**"
|
|
- "!**/*.md"
|
|
- "cmake/**"
|
|
- "CMakeLists.txt"
|
|
- "tools/maadeps-download.py"
|
|
pull_request:
|
|
paths:
|
|
- "3rdparty/include/**"
|
|
- "include/**"
|
|
- "src/Cpp/**"
|
|
- "src/MaaCore/**"
|
|
- "resource/**"
|
|
- "!**/*.md"
|
|
- "cmake/**"
|
|
- "CMakeLists.txt"
|
|
- "tools/maadeps-download.py"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
smoke-testing:
|
|
# Prevent duplicate runs on organization branches with PRs
|
|
if: github.event_name != 'pull_request' ||
|
|
github.event.pull_request.head.repo.full_name !=
|
|
github.event.pull_request.base.repo.full_name
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
with:
|
|
show-progress: false
|
|
|
|
- name: Generate cache key
|
|
id: cache_key
|
|
run: |
|
|
Write-Output "key=Smoke-testing-${{ hashFiles('src/Cpp/**', 'src/MaaCore/**', '3rdparty/include/**', 'include/**', 'cmake/**', 'CMakeLists.txt', 'tools/maadeps-download.py') }}" >> $env:GITHUB_OUTPUT
|
|
|
|
- name: Restore cache smoke-testing
|
|
id: cache-exe
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
key: ${{ steps.cache_key.outputs.key }}
|
|
path: |
|
|
./install/smoke_test.exe
|
|
./install/fastdeploy_ppocr.dll
|
|
./install/MaaCore.dll
|
|
./install/onnxruntime_maa.dll
|
|
./install/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 MaaDeps
|
|
if: steps.cache-exe.outputs.cache-hit != 'true'
|
|
id: cache-maadeps
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
./MaaDeps
|
|
key: ${{ runner.os }}-x64-maadeps-${{ hashFiles('./tools/maadeps-download.py') }}
|
|
|
|
- name: Bootstrap MaaDeps
|
|
if: steps.cache-exe.outputs.cache-hit != 'true' && steps.cache-maadeps.outputs.cache-hit != 'true'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python3 tools/maadeps-download.py x64-windows
|
|
|
|
- name: Config cmake
|
|
run: |
|
|
mkdir -p build
|
|
cmake -B build -DCMAKE_BUILD_TYPE=Debug -DMAADEPS_TRIPLET='maa-x64-windows' -DINSTALL_RESOURCE=ON -DBUILD_SMOKE_TEST=ON -DBUILD_WPF_GUI=OFF
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake --build build --config Debug
|
|
|
|
- name: Install
|
|
run: |
|
|
mkdir -p install
|
|
cmake --install build --prefix install --config Debug
|
|
|
|
- name: Run tests
|
|
run: |
|
|
pwsh tools/SmokeTesting/run_tests.ps1
|
|
|
|
- name: Save cache smoke-testing
|
|
if: steps.cache-exe.outputs.cache-hit != 'true'
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
key: ${{ steps.cache_key.outputs.key }}
|
|
path: |
|
|
./install/smoke_test.exe
|
|
./install/fastdeploy_ppocr.dll
|
|
./install/MaaCore.dll
|
|
./install/onnxruntime_maa.dll
|
|
./install/opencv_world4d_maa.dll
|
|
|
|
- name: Upload logs
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: logs
|
|
path: ./install/debug
|