mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-31 00:11:02 +00:00
Run isolated windows test to reduce CI load (#190)
This commit is contained in:
65
.github/workflows/build.yml
vendored
65
.github/workflows/build.yml
vendored
@@ -272,9 +272,9 @@ jobs:
|
|||||||
- Unicorn
|
- Unicorn
|
||||||
- Icicle
|
- Icicle
|
||||||
emulation-root:
|
emulation-root:
|
||||||
- Windows 2025
|
#- Windows 2025
|
||||||
- Windows 2022
|
- Windows 2022
|
||||||
- Windows 2019
|
#- Windows 2019
|
||||||
configuration:
|
configuration:
|
||||||
- Debug
|
- Debug
|
||||||
- Release
|
- Release
|
||||||
@@ -342,6 +342,61 @@ jobs:
|
|||||||
EMULATOR_VERBOSE: ${{ github.event.inputs.verbose }}
|
EMULATOR_VERBOSE: ${{ github.event.inputs.verbose }}
|
||||||
ANALYSIS_SAMPLE: ${{github.workspace}}/build/${{matrix.preset}}/artifacts/dump-apiset.exe
|
ANALYSIS_SAMPLE: ${{github.workspace}}/build/${{matrix.preset}}/artifacts/dump-apiset.exe
|
||||||
|
|
||||||
|
win-test:
|
||||||
|
name: Windows Test
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [create-emulation-root, build]
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
emulator:
|
||||||
|
- Unicorn
|
||||||
|
- Icicle
|
||||||
|
emulation-root:
|
||||||
|
- Windows 2025
|
||||||
|
- Windows 2022
|
||||||
|
- Windows 2019
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: Setup Environment Variables
|
||||||
|
run: |
|
||||||
|
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
|
||||||
|
echo "ASAN_OPTIONS=detect_odr_violation=0" >> $GITHUB_ENV
|
||||||
|
echo "EMULATOR_ICICLE=${{ matrix.emulator == 'Icicle' }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Download Test Configuration
|
||||||
|
uses: actions/download-artifact@v4.2.1
|
||||||
|
with:
|
||||||
|
name: Temp Windows x86_64 Release Test Config
|
||||||
|
path: build/release
|
||||||
|
|
||||||
|
- name: Download Artifacts
|
||||||
|
uses: pyTooling/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: Windows x86_64 Release Artifacts
|
||||||
|
path: build/release/artifacts
|
||||||
|
|
||||||
|
- name: Download Emulation Root
|
||||||
|
uses: pyTooling/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: ${{ matrix.emulation-root }} Emulation Root
|
||||||
|
path: build/release/artifacts/root
|
||||||
|
|
||||||
|
- name: Copy Test Sample
|
||||||
|
run: cp build/release/artifacts/test-sample.exe build/release/artifacts/root/filesys/c/
|
||||||
|
|
||||||
|
- name: CMake Test
|
||||||
|
run: cd build/release && ctest --verbose -j
|
||||||
|
env:
|
||||||
|
EMULATOR_ROOT: ${{github.workspace}}/build/release/artifacts/root
|
||||||
|
EMULATOR_VERBOSE: ${{ github.event.inputs.verbose }}
|
||||||
|
ANALYSIS_SAMPLE: ${{github.workspace}}/build/release/artifacts/dump-apiset.exe
|
||||||
|
|
||||||
|
|
||||||
smoke-test-android:
|
smoke-test-android:
|
||||||
name: Smoke Test Android
|
name: Smoke Test Android
|
||||||
runs-on: ${{ matrix.runner }}
|
runs-on: ${{ matrix.runner }}
|
||||||
@@ -356,9 +411,9 @@ jobs:
|
|||||||
- Unicorn
|
- Unicorn
|
||||||
- Icicle
|
- Icicle
|
||||||
emulation-root:
|
emulation-root:
|
||||||
- Windows 2025
|
#- Windows 2025
|
||||||
- Windows 2022
|
- Windows 2022
|
||||||
- Windows 2019
|
#- Windows 2019
|
||||||
configuration:
|
configuration:
|
||||||
- Debug
|
- Debug
|
||||||
- Release
|
- Release
|
||||||
@@ -410,7 +465,7 @@ jobs:
|
|||||||
summary:
|
summary:
|
||||||
name: Pipeline Summary
|
name: Pipeline Summary
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs: [clang-tidy, build-apiset-dumper, smoke-test-android, create-emulation-root, build, test, verify-formatting]
|
needs: [clang-tidy, build-apiset-dumper, smoke-test-android, create-emulation-root, build, test, win-test, verify-formatting]
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
- uses: geekyeggo/delete-artifact@v5
|
- uses: geekyeggo/delete-artifact@v5
|
||||||
|
|||||||
Reference in New Issue
Block a user