Skip to content

Merge pull request #11 from braveness23/boo #6

Merge pull request #11 from braveness23/boo

Merge pull request #11 from braveness23/boo #6

name: Build Firmware
# Trigger the workflow on every push to the repository
on:
push:
branches:
- master
jobs:
build-firmware:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository, including submodules
- name: Checkout repository with submodules
uses: actions/checkout@v3
with:
submodules: true # Clones submodules as well
fetch-depth: 0 # Ensures the full history is fetched (optional, useful if using deep cloning)
# Step 2: Set up the environment if needed (for example, if your makefile requires a specific toolchain or dependencies)
# For example, if your firmware requires a specific toolchain, you can install it here
- name: Set up Toolchain (optional)
run: |
sudo apt-get install build-essential gcc-avr avr-libc
# Step 3: Run the `make` command in the `firmware` directory
- name: Build firmware
working-directory: firmware
run: make