diff --git a/.github/workflows/compile_sketch.yml b/.github/workflows/compile_sketch.yml new file mode 100644 index 0000000..f1cb406 --- /dev/null +++ b/.github/workflows/compile_sketch.yml @@ -0,0 +1,37 @@ +name: Compile Sketch + +on: + - push + - pull_request + +jobs: + build: + name: ${{ matrix.board.fqbn }} + runs-on: ubuntu-latest + + strategy: + matrix: + board: + - fqbn: "ATTinyCore:avr:attinyx5micr" + - fqbn: "esp32:esp32:adafruit_qtpy_esp32s2" + - fqbn: "esp32:esp32:XIAO_ESP32C3" + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Compile + uses: arduino/compile-sketches@main + with: + platforms: | + - name: "ATTinyCore:avr" + source-url: "https://github.com/SpenceKonde/ATTinyCore/archive/1.5.2.zip" + source-path: "./avr/" + - name: "arduino:avr" + - name: esp32:esp32 + source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json + sketch-paths: | + - ./ + fqbn: ${{ matrix.board.fqbn }} + libraries: | + - name: "Adafruit NeoPixel" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index beecef4..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Compile Sketch - -on: - - push - - pull_request - -jobs: - compile-sketch: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Compile - uses: arduino/compile-sketches@main - with: - platforms: | - - source-url: "https://github.com/SpenceKonde/ATTinyCore/archive/1.5.2.zip" - name: "ATTinyCore:avr" - source-path: "./avr/" - - name: "arduino:avr" - sketch-paths: | - - ./ - fqbn: "ATTinyCore:avr:attinyx5micr" - libraries: | - - name: "Adafruit NeoPixel"