From f03924fcb0319e99cd82ad49267d9539fb927e55 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:13:57 -0700 Subject: [PATCH 1/5] Update version of actions/checkout action used in Compile Examples CI workflow The action now has a default fetch-depth value of 1, so there is no need to specify this input. --- .github/workflows/compile-examples.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index f39d1a6e..a91246d2 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -13,9 +13,7 @@ jobs: ] steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - uses: arduino/actions/libraries/compile-examples@master with: github-token: ${{ secrets.GITHUB_TOKEN }} From 04bcd680bf44d43cb42d4d39ae2ae107175c950f Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:15:51 -0700 Subject: [PATCH 2/5] Update name of action used to compile examples in CI workflow The action has been moved to a dedicated repository, where all future development work will happen. --- .github/workflows/compile-examples.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index a91246d2..e531342d 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: arduino/actions/libraries/compile-examples@master + - uses: arduino/compile-sketches@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} fqbn: ${{ matrix.fqbn }} From 4342fe888041b6e7c6e8d21c3c62e5fc7eba57a5 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 26 Sep 2020 16:18:05 -0700 Subject: [PATCH 3/5] Use consistent formatting style in Compile Examples CI action The previous inconsistent markup style, although perfectly valid, made the workflow harder to understand. --- .github/workflows/compile-examples.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index e531342d..52a11582 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -1,5 +1,8 @@ name: Compile Examples -on: [push, pull_request] +on: + - push + - pull_request + jobs: build: runs-on: ubuntu-latest From e3bdb384002e8592a2472972d4ed19299254c92a Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 4 May 2021 16:06:31 +0200 Subject: [PATCH 4/5] Use consistent indent size in Compile Examples workflow The initial single space indent made the workflow difficult to edit and harmed readability. --- .github/workflows/compile-examples.yml | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 52a11582..ab55f19b 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -4,20 +4,20 @@ on: - pull_request jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - strategy: - matrix: - fqbn: [ - '"STM32:stm32:Eval:pnum=STEVAL_MKSBOX1V1,usb=CDCgen" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', - '"STM32:stm32:Nucleo_64:pnum=NUCLEO_L476RG" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', - '"STM32:stm32:Disco:pnum=B_L475E_IOT01A" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"' - ] + strategy: + matrix: + fqbn: [ + '"STM32:stm32:Eval:pnum=STEVAL_MKSBOX1V1,usb=CDCgen" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', + '"STM32:stm32:Nucleo_64:pnum=NUCLEO_L476RG" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', + '"STM32:stm32:Disco:pnum=B_L475E_IOT01A" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"' + ] - steps: - - uses: actions/checkout@v2 - - uses: arduino/compile-sketches@v1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - fqbn: ${{ matrix.fqbn }} + steps: + - uses: actions/checkout@v2 + - uses: arduino/compile-sketches@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + fqbn: ${{ matrix.fqbn }} From 4031a6a84f260e3a7a395439453fda951d12305a Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Tue, 4 May 2021 17:20:49 +0200 Subject: [PATCH 5/5] fix: ci: update with new maintainer name Signed-off-by: Frederic Pillon --- .github/workflows/compile-examples.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index ab55f19b..4efa2d9d 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -9,11 +9,11 @@ jobs: strategy: matrix: - fqbn: [ - '"STM32:stm32:Eval:pnum=STEVAL_MKSBOX1V1,usb=CDCgen" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', - '"STM32:stm32:Nucleo_64:pnum=NUCLEO_L476RG" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"', - '"STM32:stm32:Disco:pnum=B_L475E_IOT01A" "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"' - ] + fqbn: + - STMicroelectronics:stm32:Eval:pnum=STEVAL_MKSBOX1V1,usb=CDCgen + - STMicroelectronics:stm32:Nucleo_64:pnum=NUCLEO_L476RG + - STMicroelectronics:stm32:Disco:pnum=B_L475E_IOT01A + - STMicroelectronics:stm32:Nucleo_64:pnum=P_NUCLEO_WB55RG steps: - uses: actions/checkout@v2 @@ -21,3 +21,6 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} fqbn: ${{ matrix.fqbn }} + platforms: | + - source-url: https://github.com/stm32duino/BoardManagerFiles/raw/master/package_stmicroelectronics_index.json + name: STMicroelectronics:stm32