Skip to content

Commit

Permalink
build examples in CI (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandelgado authored Dec 25, 2024
1 parent 3c5d8e9 commit 57131f9
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 11 deletions.
25 changes: 16 additions & 9 deletions .common/Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# makefile to build examples with platformi
#
.PHONY: run clean upload monitor ci envdump
.PHONY: phony

run:
run: phony
pio run

envdump:
envdump: phony
-pio run --target envdump

clean:
clean: phony
-pio run --target clean

upload:
pio run --target upload
upload: phony
pio run --target upload

monitor:
pio device monitor
monitor: phony
pio device monitor

tags:
tags: phony
ctags -R

ci:
find .. -maxdepth 2 -not -path '\.\./\.common/*' -name Makefile \
-exec sh -c 'make -C $$(dirname {})' \;
phony:


27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
push:
branches:
- master
pull_request:
branches:
- master

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

- name: install python
uses: actions/setup-python@v4
with:
python-version: '3.13'

- name: install tools
run: |
pip install platformio==6.1.10
- name: build examples
run: make -C .common ci
16 changes: 16 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Stale issue handler'
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@main
with:
stale-issue-message: 'This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 90
days-before-close: 5
exempt-issue-labels: 'blocked,must,should,keep'
2 changes: 1 addition & 1 deletion heltec_wifi_lora32/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ src_dir = .
platform = espressif32
board = esp32dev
framework = arduino
lib_deps=olikraus/[email protected].1
lib_deps=olikraus/[email protected].2

2 changes: 1 addition & 1 deletion wemos_d_duino/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ src_dir = .
platform = espressif8266
board = nodemcuv2
framework = arduino
lib_deps=olikraus/[email protected].1
lib_deps=olikraus/[email protected].2

0 comments on commit 57131f9

Please sign in to comment.