ci: Add firmware build step
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 2m57s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 8s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
All checks were successful
Build RPi Pico firmware image / Build-Firmware (push) Successful in 2m57s
Check code formatting / Check-C-Format (push) Successful in 6s
Check code formatting / Check-Python-Flake8 (push) Successful in 8s
Check code formatting / Check-Bash-Shellcheck (push) Successful in 4s
Run unit tests on host / Run-Unit-Tests (push) Successful in 7s
Try to build the actual firmware image in CI
This commit is contained in:
20
.gitea/workflows/build.yaml
Normal file
20
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Build RPi Pico firmware image
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
Build-Firmware:
|
||||
runs-on: tonberry-build
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Initialize submodules
|
||||
run: cd software && ./update-submodules.sh
|
||||
- name: Build
|
||||
run: cd software && ./build.sh
|
||||
- name: Upload firmware
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: firmware-RPi-Pico-W
|
||||
path: software/lib/micropython/ports/rp2/build-TONBERRY_RPI_PICO_W/firmware.uf2
|
||||
8
software/Dockerfile.build
Normal file
8
software/Dockerfile.build
Normal file
@@ -0,0 +1,8 @@
|
||||
# Image: git.ka.blankertz.org/tonberry/tonberry-pico/build:latest
|
||||
FROM gitea/runner-images:ubuntu-22.04
|
||||
|
||||
# Install gcc-arm-none-eabi
|
||||
RUN apt update && \
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y --no-install-recommends cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib \
|
||||
&& apt clean && rm -rf /var/lib/apt/lists/*
|
||||
Reference in New Issue
Block a user