From bab07b053604e48ad2d996d4ae3caa473186f7f0 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Thu, 24 Apr 2025 09:59:07 +0200 Subject: [PATCH 1/2] amend .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 5c98a93..5774cfe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ # PlatformIO /.pio + +# OS files +.DS_Store From e30808f4034777117e5a5afc24e81004844a445a Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Thu, 24 Apr 2025 09:59:17 +0200 Subject: [PATCH 2/2] add platformio.yaml --- .github/workflows/platformio.yaml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/platformio.yaml diff --git a/.github/workflows/platformio.yaml b/.github/workflows/platformio.yaml new file mode 100644 index 0000000..3d5dd47 --- /dev/null +++ b/.github/workflows/platformio.yaml @@ -0,0 +1,34 @@ +# Reference: https://docs.platformio.org/en/stable/integration/ci/github-actions.html + +name: PlatformIO CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/cache@v4 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Run PlatformIO + run: | + pio ci --lib="." --project-conf platformio.ini examples/SineWaveCAN/SineWaveCAN.ino + #pio ci --lib="." examples/SineWaveCAN/SineWaveCAN.ino