Repository navigation
56 lines (47 loc) · 1.67 KB
/
Copy pathbuild.yml
File metadata and controls
56 lines (47 loc) · 1.67 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
name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
env:
APP_NAME: 'Tab5 Emu'
IDF_VERSION: 'v6.1'
IDF_COMPONENT_MANAGER: "1"
FLASH_TOTAL_OVERRIDE: '8388608' # 8MB flash app partition for main app
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Checkout the game submodules (without their desktop-only nested submodules)
run: git submodule update --init components/jk/OpenJKDF2 components/mgs/mgs_reversing components/mgs/psyz components/tpm/tpm-decomp
- name: Build
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ env.IDF_VERSION }}
target: esp32p4
path: '.'
- name: Zip up firmware binaries
run: |
zip -j -r firmware-binaries.zip build/tab5-emu.bin build/bootloader/bootloader.bin build/partition_table/partition-table.bin build/flash_args build/flasher_args.json
- name: Upload Build Outputs
uses: actions/upload-artifact@v4
with:
name: firmware-binaries
path: firmware-binaries.zip
- name: Determine Size Delta
# builds the base branch too: not a gate, so a base that no longer
# builds in CI (main's manifest still overrides espp onto a local
# checkout) cannot fail the firmware build above
continue-on-error: true
uses: esp-cpp/esp-idf-size-delta@v1
with:
app_name: ${{ env.APP_NAME }}
app_path: '.'
idf_target: esp32p4
idf_version: ${{ env.IDF_VERSION }}
idf_component_manager: ${{ env.IDF_COMPONENT_MANAGER }}
flash_total_override: ${{ env.FLASH_TOTAL_OVERRIDE }}