-
Notifications
You must be signed in to change notification settings - Fork 0
165 lines (139 loc) · 3.82 KB
/
gba.yaml
File metadata and controls
165 lines (139 loc) · 3.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
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/