This repository includes automated build testing on every commit.
- Trigger: Runs on every push and pull request to any branch
- Location:
.github/workflows/build.yml - What it does:
- Checks out code
- Sets up PlatformIO environment
- Builds firmware for
megaatmega2560target - Uploads firmware artifact (
.hexfile) - Caches dependencies for faster builds
- Trigger: Runs automatically before each git commit
- Location:
.git/hooks/pre-commit - What it does:
- Runs
pio runto build the project - Blocks commit if build fails
- Allows commit to proceed if build succeeds
- Runs
Check the Actions tab on GitHub to see build status for all commits.
To manually test the build:
pio runTo skip the pre-commit hook (not recommended):
git commit --no-verify- PlatformIO Core installed locally for pre-commit hooks
- GitHub Actions handles CI builds automatically (no local setup needed)