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 diff --git a/.gitignore b/.gitignore index 5c98a93..5774cfe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ # PlatformIO /.pio + +# OS files +.DS_Store