From acbb6eeeceb87aac7c56322857f9478a3c43681c Mon Sep 17 00:00:00 2001 From: SQFMI Date: Wed, 3 Apr 2024 14:55:30 -0400 Subject: [PATCH] Compile for different board revisions --- .github/workflows/main.actions.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.actions.yml b/.github/workflows/main.actions.yml index b3f1b79..57ded1b 100644 --- a/.github/workflows/main.actions.yml +++ b/.github/workflows/main.actions.yml @@ -7,14 +7,24 @@ jobs: release: name: Build and Release runs-on: ubuntu-latest + strategy: + matrix: + board-revisions: [v10, v15, v20] steps: - uses: actions/checkout@master - uses: ArminJo/arduino-test-compile@v3 with: - arduino-board-fqbn: esp32:esp32:watchy:Revision=v20,PartitionScheme=min_spiffs,UploadSpeed=921600,DebugLevel=none,EraseFlash=none + arduino-board-fqbn: esp32:esp32:watchy:Revision=${{ matrix.board-revisions }},PartitionScheme=min_spiffs,UploadSpeed=921600,DebugLevel=none,EraseFlash=none platform-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json required-libraries: Adafruit GFX Library,Arduino_JSON,DS3232RTC,NTPClient,Rtc_Pcf8563,GxEPD2,WiFiManager set-build-path: true + - name: Rename binaries with board revision + run: | + for file in *; do + name="${file%%.*}" + ext="${file#$name.}" + mv "$file" "$name"${{ matrix.board-revisions }}."$ext" + done - uses: softprops/action-gh-release@v1 with: name: "Watchy Arduino Library ${{ github.ref_name }}"