e55b7f2b3a
Firmware compile / build (push) Has been cancelled
- Builds firmware - Saves it as artifact
38 lines
788 B
YAML
38 lines
788 B
YAML
# .gitea/workflows/build.yml
|
|
name: Firmware compile
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "ci" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: uoohyo/stm32-cmake:latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build the firmware
|
|
run: |
|
|
if [ -f *.ioc ]; then
|
|
echo "Generating code from CubeMX .ioc file…"
|
|
STM32CubeMX -q *.ioc
|
|
fi
|
|
echo "Starting the build…"
|
|
make -j$(nproc)
|
|
|
|
- name: Upload firmware binaries
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: firmware-binaries
|
|
path: |
|
|
*.bin
|
|
*.hex
|
|
*.elf
|