Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: firmware-build

on:
push:
pull_request:

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake ninja-build gcc-arm-none-eabi

- name: Configure
run: cmake --preset Debug

- name: Build
run: cmake --build --preset Debug
3 changes: 1 addition & 2 deletions components/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "main.hpp"

void flightTask(void *pvParameters) {

extern "C" void flightTask(void *pvParameters) {
}

int app_main() {
Expand Down
5 changes: 2 additions & 3 deletions components/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ extern I2C_HandleTypeDef hi2c1;
extern SPI_HandleTypeDef hspi1;

int app_main(void);
void flightTask(void *pvParameters);

#ifdef __cplusplus
}
#endif

void flightTask(void *pvParameters);
#endif
Loading