Skip to content

Commit

Permalink
Add basic GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
noahp committed Mar 18, 2024
1 parent b22966d commit 177acd6
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches: [main]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install PlatformIO
run: |
pip install platformio==6.1.13
- name: Build
run: |
pio run
9 changes: 9 additions & 0 deletions dep_check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Import("env")

# Install missing package
try:
import pkg_resources
except ImportError:
# setuptools is not installed in python 3.12, but it's required here:
# ~/.platformio/platforms/espressif32/builder/frameworks/espidf.py
env.Execute("$PYTHONEXE -m pip install setuptools==69.2.0")
1 change: 1 addition & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ board_build.partitions = partitions_example.csv

; wrapper to run the memfault build id script on the output binary
extra_scripts =
pre:dep_check.py
post:add_build_id.py

; disable filtering so the ANSI colors come through
Expand Down

0 comments on commit 177acd6

Please sign in to comment.