ci: add Gitea Actions build workflow
Build Firmware / Build stm32-teslacharger (pull_request) Failing after 16s
Build Firmware / Build stm32-teslacharger (pull_request) Failing after 16s
Builds firmware on PR/push to main. Initializes libopencm3 and libopeninv submodules then runs make. Uploads stm32_charger.bin as a 30-day retained artifact. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
name: Build Firmware
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build stm32-teslacharger
|
||||||
|
runs-on: fedora
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout with submodules
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Build libopencm3
|
||||||
|
run: make -C libopencm3 -j$(nproc)
|
||||||
|
|
||||||
|
- name: Build firmware
|
||||||
|
run: make -j$(nproc)
|
||||||
|
|
||||||
|
- name: Show binary size
|
||||||
|
run: |
|
||||||
|
arm-none-eabi-size stm32_charger.elf
|
||||||
|
ls -lh stm32_charger.bin
|
||||||
|
|
||||||
|
- name: Upload binary
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: stm32-teslacharger-${{ github.sha }}
|
||||||
|
path: stm32_charger.bin
|
||||||
|
retention-days: 30
|
||||||
Reference in New Issue
Block a user