Skip to content

test thumb.gba

test thumb.gba #138

Workflow file for this run

name: gba
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
paths: [core/gba/**]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@v6
- name: Set up OSS CAD Suite
uses: YosysHQ/setup-oss-cad-suite@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
version: "2026-02-16"
- name: Cache vcpkg
uses: actions/cache@v4
with:
path: |
vcpkg
build/vcpkg_installed
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
- name: Install vcpkg
shell: pwsh
run: |
if (!(Test-Path vcpkg)) {
git clone https://github.com/microsoft/vcpkg.git
git -C vcpkg checkout 80d025e8299d442c13b29751fc9451711b7c6c8e
vcpkg\bootstrap-vcpkg.bat
}
echo "VCPKG_ROOT=${{github.workspace}}\vcpkg" >> $env:GITHUB_ENV
- name: Configure
run: cmake --preset debug -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDebug -DVCPKG_TARGET_TRIPLET=x64-windows-static
- name: Build
run: cmake --build --preset debug --target test_gba
- name: Upload test binary
uses: actions/upload-artifact@v4
with:
name: test_gba
path: build/debug/cores/gba/tests/test_gba.exe
arm_sst_tests:
runs-on: windows-latest
needs: build
strategy:
fail-fast: true
matrix:
test:
- data_proc_immediate
- data_proc_immediate_shift
- data_proc_register_shift
- ldm_stm
- ldr_str_immediate_offset
- ldr_str_register_offset
- ldrh_strh
- ldrsb_ldrsh
- b_bl
- bx
- swi
- mul_mla
- mull_mlal
- swp
- mrs
- msr_imm
- msr_reg
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
name: test_gba
- name: Run GBA tests
run: |
.\test_gba.exe --gtest_filter=*arm_${{ matrix.test }}_json --test-dir=${{ github.workspace }}/tests/
thumb_sst_tests:
runs-on: windows-latest
needs: build
strategy:
fail-fast: true
matrix:
test:
- add_sub
- mov_cmp_add_sub
- data_proc
- ldr_pc_rel
- ldm_stm
- ldr_str_imm_offset
- ldr_str_reg_offset
- ldrsb_strb_reg_offset
- ldrb_strb_imm_offset
- ldrsh_ldrsb_reg_offset
- ldrsb_strb_reg_offset
- ldrh_strh_imm_offset
- ldr_str_sp_rel
- add_cmp_mov_hi
- add_sub_sp
- b
- bcc
- bx
- bl_blx_prefix
- bl_suffix
- push_pop
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
name: test_gba
- name: Run GBA tests
run: |
.\test_gba.exe --gtest_filter=*thumb_${{ matrix.test }}_json --test-dir=${{ github.workspace }}/tests/
jsmolka_gba_tests:
runs-on: windows-latest
needs: build
strategy:
fail-fast: true
matrix:
test:
- ARM_GBA_tests
- Thumb_GBA_tests
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/download-artifact@v4
with:
name: test_gba
- name: Run GBA tests
run: |
.\test_gba.exe --gtest_filter=*${{ matrix.test }}* --test-dir=${{ github.workspace }}/tests/