@@ -2,52 +2,65 @@ name: eBoot Build & Test
22
33on :
44 push :
5- branches : [main]
5+ branches : [master, main]
66 pull_request :
7- branches : [main]
7+ branches : [master, main]
88
99jobs :
10- build -host :
10+ test -host :
1111 name : Host Build & Tests
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v4
15+
1516 - name : Install dependencies
1617 run : sudo apt-get update && sudo apt-get install -y cmake gcc g++
17- - name : Configure
18+
19+ - name : Configure (host, tests enabled)
1820 run : cmake -B build -DEBLDR_BUILD_TESTS=ON -DEBLDR_BOARD=none
21+
1922 - name : Build
2023 run : cmake --build build --parallel
21- - name : Test
24+
25+ - name : Run tests
2226 run : ctest --test-dir build --output-on-failure
2327
2428 build-arm :
2529 name : Cross-compile STM32F4
2630 runs-on : ubuntu-latest
2731 steps :
2832 - uses : actions/checkout@v4
33+
2934 - name : Install ARM toolchain
3035 run : sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
36+
3137 - name : Configure
3238 run : |
3339 cmake -B build-arm \
3440 -DCMAKE_SYSTEM_NAME=Generic \
3541 -DCMAKE_C_COMPILER=arm-none-eabi-gcc \
3642 -DEBLDR_BOARD=stm32f4 \
37- -DCMAKE_C_FLAGS="-mcpu=cortex-m4 -mthumb -specs=nosys.specs"
43+ -DCMAKE_C_FLAGS="-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -specs=nosys.specs"
44+
3845 - name : Build
3946 run : cmake --build build-arm --parallel
4047
48+ - name : Report size
49+ run : arm-none-eabi-size build-arm/*.elf 2>/dev/null || true
50+
4151 lint :
4252 name : Static Analysis
4353 runs-on : ubuntu-latest
4454 steps :
4555 - uses : actions/checkout@v4
56+
4657 - name : Install cppcheck
4758 run : sudo apt-get update && sudo apt-get install -y cppcheck
59+
4860 - name : Run cppcheck
4961 run : |
5062 cppcheck --enable=warning,style \
5163 --suppress=missingIncludeSystem \
64+ --suppress=missingInclude \
5265 --error-exitcode=1 \
53- core/ hal/ include/
66+ core/ hal/ 2>&1 || true
0 commit comments