-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (54 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
62 lines (54 loc) · 1.6 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
name: CI
on:
push:
branches: [main, dev]
pull_request:
branches: [main, dev]
jobs:
# Native unit tests on Ubuntu — pure C++ logic, no Wii U toolchain needed.
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: |
mkdir -p tests/build
cd tests/build
cmake .. -DCMAKE_BUILD_TYPE=Release
- name: Build & run tests
run: |
cd tests/build
make -j$(nproc)
./cupstore_tests
# Cross-build for both target modes. A regression in either
# (e.g. a bug behind #if BUILD_HW) is caught here before merge.
build:
runs-on: ubuntu-latest
container:
image: devkitpro/devkitppc:latest
strategy:
fail-fast: false
matrix:
mode: [cemu, hw]
steps:
- uses: actions/checkout@v4
- name: Build (${{ matrix.mode }})
run: |
mkdir -p build
cd build
cmake .. \
-DCMAKE_TOOLCHAIN_FILE=/opt/devkitpro/wut/share/wut.toolchain.cmake \
-DBUILD_MODE=${{ matrix.mode }} \
-DAPP_VERSION=0.0.0-ci
make -j$(nproc)
- name: Verify wuhb produced
run: |
test -s build/wiiu_mod_store.wuhb
ls -la build/wiiu_mod_store.wuhb
- name: Upload artifact
if: matrix.mode == 'hw' && github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: wiiu_mod_store-${{ matrix.mode }}-${{ github.sha }}
path: build/wiiu_mod_store.wuhb
retention-days: 14