|
| 1 | +name: Run Ci Arduino |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + repository_dispatch: |
| 7 | + types: [trigger-workflow] |
| 8 | + |
| 9 | +jobs: |
| 10 | + ci-arduino: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: Checkout repository |
| 15 | + uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Checkout script repository |
| 18 | + uses: actions/checkout@v4 |
| 19 | + with: |
| 20 | + repository: Seeed-Studio/ci-arduino |
| 21 | + path: ci |
| 22 | + |
| 23 | + - name: Setup arduino cli |
| 24 | + uses: arduino/setup-arduino-cli@v2.0.0 |
| 25 | + |
| 26 | + - name: Create a depend.list file |
| 27 | + run: | |
| 28 | + # eg: echo "<repo>" >> depend.list |
| 29 | +
|
| 30 | + - name: Create a ignore.list file |
| 31 | + run: | |
| 32 | + # eg: echo "<path>,<fqbn>" >> ignore.list |
| 33 | +
|
| 34 | + # xiao m0 RAM is too small |
| 35 | + echo "320 x 240/All_Free_Fonts_Demo,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 36 | + echo "320 x 240/Cellular_Automata,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 37 | + echo "480 x 320/Cellular_Automata,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 38 | +
|
| 39 | + # xiao m0 RAM is too small |
| 40 | + echo "320 x 240/All_Free_Fonts_Demo,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 41 | + echo "320 x 240/Cellular_Automata,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 42 | + echo "480 x 320/Cellular_Automata,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 43 | +
|
| 44 | + # no Seeed_FS.h so can't compile |
| 45 | + echo "Smooth Fonts/Font_Demo_1,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 46 | + echo "Smooth Fonts/Font_Demo_1,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 47 | + echo "Smooth Fonts/Font_Demo_1,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 48 | + echo "Smooth Fonts/Font_Demo_1,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 49 | + echo "Smooth Fonts/Font_Demo_1,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 50 | + echo "Smooth Fonts/Font_Demo_1,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 51 | + echo "Smooth Fonts/Font_Demo_1,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 52 | + echo "Smooth Fonts/Font_Demo_1,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 53 | + echo "Smooth Fonts/Font_Demo_1,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 54 | +
|
| 55 | + echo "Smooth Fonts/Font_Demo_2,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 56 | + echo "Smooth Fonts/Font_Demo_2,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 57 | + echo "Smooth Fonts/Font_Demo_2,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 58 | + echo "Smooth Fonts/Font_Demo_2,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 59 | + echo "Smooth Fonts/Font_Demo_2,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 60 | + echo "Smooth Fonts/Font_Demo_2,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 61 | + echo "Smooth Fonts/Font_Demo_2,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 62 | + echo "Smooth Fonts/Font_Demo_2,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 63 | + echo "Smooth Fonts/Font_Demo_2,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 64 | +
|
| 65 | + echo "Smooth Fonts/Font_Demo_3,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 66 | + echo "Smooth Fonts/Font_Demo_3,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 67 | + echo "Smooth Fonts/Font_Demo_3,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 68 | + echo "Smooth Fonts/Font_Demo_3,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 69 | + echo "Smooth Fonts/Font_Demo_3,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 70 | + echo "Smooth Fonts/Font_Demo_3,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 71 | + echo "Smooth Fonts/Font_Demo_3,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 72 | + echo "Smooth Fonts/Font_Demo_3,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 73 | + echo "Smooth Fonts/Font_Demo_3,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 74 | +
|
| 75 | + echo "Smooth Fonts/Font_Demo_4,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 76 | + echo "Smooth Fonts/Font_Demo_4,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 77 | + echo "Smooth Fonts/Font_Demo_4,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 78 | + echo "Smooth Fonts/Font_Demo_4,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 79 | + echo "Smooth Fonts/Font_Demo_4,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 80 | + echo "Smooth Fonts/Font_Demo_4,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 81 | + echo "Smooth Fonts/Font_Demo_4,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 82 | + echo "Smooth Fonts/Font_Demo_4,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 83 | + echo "Smooth Fonts/Font_Demo_4,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 84 | +
|
| 85 | + echo "Smooth Fonts/Print_Smooth_Font,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 86 | + echo "Smooth Fonts/Print_Smooth_Font,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 87 | + echo "Smooth Fonts/Print_Smooth_Font,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 88 | + echo "Smooth Fonts/Print_Smooth_Font,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 89 | + echo "Smooth Fonts/Print_Smooth_Font,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 90 | + echo "Smooth Fonts/Print_Smooth_Font,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 91 | + echo "Smooth Fonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 92 | + echo "Smooth Fonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 93 | + echo "Smooth Fonts/Print_Smooth_Font,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 94 | +
|
| 95 | + echo "480 x 320/Touch_Controller_Demo,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 96 | + echo "480 x 320/Touch_Controller_Demo,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 97 | + echo "480 x 320/Touch_Controller_Demo,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 98 | + echo "480 x 320/Touch_Controller_Demo,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 99 | + echo "480 x 320/Touch_Controller_Demo,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 100 | + echo "480 x 320/Touch_Controller_Demo,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 101 | + echo "480 x 320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 102 | + echo "480 x 320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 103 | + echo "480 x 320/Touch_Controller_Demo,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 104 | +
|
| 105 | + echo "Smooth Fonts/Unicode_test,Seeeduino:samd:seeed_XIAO_m0" >> ignore.list |
| 106 | + echo "Smooth Fonts/Unicode_test,Seeeduino:nrf52:xiaonRF52840" >> ignore.list |
| 107 | + echo "Smooth Fonts/Unicode_test,Seeeduino:nrf52:xiaonRF52840Sense" >> ignore.list |
| 108 | + echo "Smooth Fonts/Unicode_test,Seeeduino:renesas_uno:XIAO_RA4M1" >> ignore.list |
| 109 | + echo "Smooth Fonts/Unicode_test,rp2040:rp2040:seeed_xiao_rp2040" >> ignore.list |
| 110 | + echo "Smooth Fonts/Unicode_test,rp2040:rp2040:seeed_xiao_rp2350" >> ignore.list |
| 111 | + echo "Smooth Fonts/Unicode_test,esp32:esp32:XIAO_ESP32C3" >> ignore.list |
| 112 | + echo "Smooth Fonts/Unicode_test,esp32:esp32:XIAO_ESP32C6" >> ignore.list |
| 113 | + echo "Smooth Fonts/Unicode_test,esp32:esp32:XIAO_ESP32S3" >> ignore.list |
| 114 | +
|
| 115 | + - name: Build sketch |
| 116 | + run: | |
| 117 | + ./ci/tools/compile.sh |
| 118 | +
|
| 119 | + - name: Build result |
| 120 | + run: | |
| 121 | + cat build.log |
| 122 | + if [ ${{ github.event_name }} == 'pull_request' ] && [ -f compile.failed ]; then |
| 123 | + exit 1 |
| 124 | + fi |
| 125 | +
|
| 126 | + - name: Generate issue |
| 127 | + if: ${{ github.event_name != 'pull_request' }} |
| 128 | + run: ./ci/tools/issue.sh |
| 129 | + env: |
| 130 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments