37 lines
735 B
YAML
37 lines
735 B
YAML
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 get-deps
|
|
|
|
- name: Build firmware
|
|
run: make images -j$(nproc)
|
|
|
|
- name: Show binary size
|
|
run: 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
|