|
1 | | -name: Arduino CLI build |
2 | | - |
3 | | -on: |
4 | | - pull_request: |
5 | | - branches: [master, v1.x] |
6 | | - paths: |
7 | | - - ".github/workflows/build_arduino.yml" |
8 | | - - "examples/**" |
9 | | - |
10 | | - push: |
11 | | - branches: [master, v1.x] |
12 | | - paths: |
13 | | - - ".github/workflows/build_arduino.yml" |
14 | | - - "examples/**" |
15 | | - |
16 | | -jobs: |
17 | | - build: |
18 | | - uses: nRF24/.github/.github/workflows/build_arduino.yaml@main |
19 | | - with: |
20 | | - sketch-paths: | |
21 | | - - examples/helloworld_rx |
22 | | - - examples/helloworld_rx_advanced |
23 | | - - examples/helloworld_tx_advanced |
24 | | - - examples/helloworld_tx |
25 | | - - examples/Network_Priority_RX |
26 | | - - examples/Network_Priority_TX |
27 | | - # - examples/Network_Ping |
28 | | - # - examples/Network_Ping_Sleep |
29 | | - libraries: | |
30 | | - - source-url: https://github.com/nRF24/RF24.git |
31 | | - - source-path: ./ |
32 | | - - name: nrf_to_nrf |
33 | | - fqbn: ${{ matrix.fqbn }} |
34 | | - enable-deltas-report: ${{ matrix.enable-deltas-report }} |
35 | | - platforms: | |
36 | | - - name: arduino:avr |
37 | | - - name: arduino:megaavr |
38 | | - - name: arduino:samd |
39 | | - - name: arduino:mbed |
40 | | - # - name: arduino:sam |
41 | | - strategy: |
42 | | - fail-fast: false |
43 | | - matrix: |
44 | | - fqbn: |
45 | | - - "arduino:avr:yun" |
46 | | - - "arduino:avr:uno" |
47 | | - - "arduino:avr:diecimila" |
48 | | - - "arduino:avr:mega" |
49 | | - - "arduino:avr:megaADK" |
50 | | - - "arduino:avr:leonardo" |
51 | | - - "arduino:avr:micro" |
52 | | - - "arduino:avr:esplora" |
53 | | - - "arduino:avr:mini" |
54 | | - - "arduino:avr:ethernet" |
55 | | - - "arduino:avr:fio" |
56 | | - - "arduino:avr:bt" |
57 | | - # - "arduino:avr:LilyPad" # board not found |
58 | | - - "arduino:avr:LilyPadUSB" |
59 | | - - "arduino:avr:pro" |
60 | | - - "arduino:avr:atmegang" |
61 | | - - "arduino:avr:robotControl" |
62 | | - # - "arduino:avr:gemma" # does not support SPI |
63 | | - - "arduino:avr:circuitplay32u4cat" |
64 | | - - "arduino:avr:yunmini" |
65 | | - - "arduino:avr:chiwawa" |
66 | | - - "arduino:avr:one" |
67 | | - - "arduino:avr:unowifi" |
68 | | - - "arduino:mbed:nano33ble" |
69 | | - - "arduino:samd:mkr1000" |
70 | | - - "arduino:samd:mkrwifi1010" |
71 | | - - "arduino:samd:nano_33_iot" |
72 | | - - "arduino:samd:mkrfox1200" |
73 | | - - "arduino:samd:mkrwan1300" |
74 | | - - "arduino:samd:mkrwan1310" |
75 | | - - "arduino:samd:mkrgsm1400" |
76 | | - - "arduino:samd:mkrnb1500" |
77 | | - - "arduino:samd:mkrvidor4000" |
78 | | - - "arduino:samd:adafruit_circuitplayground_m0" |
79 | | - - "arduino:samd:mzero_pro_bl" |
80 | | - - "arduino:samd:mzero_bl" |
81 | | - - "arduino:samd:tian" |
82 | | - - "arduino:megaavr:uno2018" |
83 | | - # - "arduino:megaavr:nano4809" # board not found |
84 | | - # By default, don't generate size deltas data. |
85 | | - enable-deltas-report: |
86 | | - - false |
87 | | - # Generate size deltas data for this board |
88 | | - include: |
89 | | - - fqbn: arduino:avr:nano |
90 | | - enable-deltas-report: true |
91 | | - - fqbn: arduino:samd:mkrzero |
92 | | - enable-deltas-report: true |
93 | | - |
94 | | - # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report |
95 | | - report: |
96 | | - needs: [build] |
97 | | - if: github.event_name == 'pull_request' |
98 | | - uses: nRF24/.github/.github/workflows/arduino_size_deltas.yaml@main |
| 1 | +name: Arduino |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [master, v1.x] |
| 6 | + paths: |
| 7 | + - ".github/workflows/build_arduino.yml" |
| 8 | + - "examples/**" |
| 9 | + |
| 10 | + push: |
| 11 | + branches: [master, v1.x] |
| 12 | + paths: |
| 13 | + - ".github/workflows/build_arduino.yml" |
| 14 | + - "examples/**" |
| 15 | + |
| 16 | +permissions: {} |
| 17 | + |
| 18 | +concurrency: |
| 19 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 20 | + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} |
| 21 | + |
| 22 | +jobs: |
| 23 | + build: |
| 24 | + uses: nRF24/.github/.github/workflows/build_arduino.yaml@main |
| 25 | + with: |
| 26 | + sketch-paths: | |
| 27 | + - examples/helloworld_rx |
| 28 | + - examples/helloworld_rx_advanced |
| 29 | + - examples/helloworld_tx_advanced |
| 30 | + - examples/helloworld_tx |
| 31 | + - examples/Network_Priority_RX |
| 32 | + - examples/Network_Priority_TX |
| 33 | + # - examples/Network_Ping |
| 34 | + # - examples/Network_Ping_Sleep |
| 35 | + libraries: | |
| 36 | + - source-url: https://github.com/nRF24/RF24.git |
| 37 | + - source-path: ./ |
| 38 | + - name: nrf_to_nrf |
| 39 | + fqbn: ${{ matrix.fqbn }} |
| 40 | + enable-deltas-report: ${{ matrix.enable-deltas-report }} |
| 41 | + platforms: | |
| 42 | + - name: arduino:avr |
| 43 | + - name: arduino:megaavr |
| 44 | + - name: arduino:samd |
| 45 | + - name: arduino:mbed |
| 46 | + # - name: arduino:sam |
| 47 | + strategy: |
| 48 | + fail-fast: false |
| 49 | + matrix: |
| 50 | + fqbn: |
| 51 | + - "arduino:avr:yun" |
| 52 | + - "arduino:avr:uno" |
| 53 | + - "arduino:avr:diecimila" |
| 54 | + - "arduino:avr:mega" |
| 55 | + - "arduino:avr:megaADK" |
| 56 | + - "arduino:avr:leonardo" |
| 57 | + - "arduino:avr:micro" |
| 58 | + - "arduino:avr:esplora" |
| 59 | + - "arduino:avr:mini" |
| 60 | + - "arduino:avr:ethernet" |
| 61 | + - "arduino:avr:fio" |
| 62 | + - "arduino:avr:bt" |
| 63 | + # - "arduino:avr:LilyPad" # board not found |
| 64 | + - "arduino:avr:LilyPadUSB" |
| 65 | + - "arduino:avr:pro" |
| 66 | + - "arduino:avr:atmegang" |
| 67 | + - "arduino:avr:robotControl" |
| 68 | + # - "arduino:avr:gemma" # does not support SPI |
| 69 | + - "arduino:avr:circuitplay32u4cat" |
| 70 | + - "arduino:avr:yunmini" |
| 71 | + - "arduino:avr:chiwawa" |
| 72 | + - "arduino:avr:one" |
| 73 | + - "arduino:avr:unowifi" |
| 74 | + - "arduino:mbed:nano33ble" |
| 75 | + - "arduino:samd:mkr1000" |
| 76 | + - "arduino:samd:mkrwifi1010" |
| 77 | + - "arduino:samd:nano_33_iot" |
| 78 | + - "arduino:samd:mkrfox1200" |
| 79 | + - "arduino:samd:mkrwan1300" |
| 80 | + - "arduino:samd:mkrwan1310" |
| 81 | + - "arduino:samd:mkrgsm1400" |
| 82 | + - "arduino:samd:mkrnb1500" |
| 83 | + - "arduino:samd:mkrvidor4000" |
| 84 | + - "arduino:samd:adafruit_circuitplayground_m0" |
| 85 | + - "arduino:samd:mzero_pro_bl" |
| 86 | + - "arduino:samd:mzero_bl" |
| 87 | + - "arduino:samd:tian" |
| 88 | + - "arduino:megaavr:uno2018" |
| 89 | + # - "arduino:megaavr:nano4809" # board not found |
| 90 | + # By default, don't generate size deltas data. |
| 91 | + enable-deltas-report: |
| 92 | + - false |
| 93 | + # Generate size deltas data for this board |
| 94 | + include: |
| 95 | + - fqbn: arduino:avr:nano |
| 96 | + enable-deltas-report: true |
| 97 | + - fqbn: arduino:samd:mkrzero |
| 98 | + enable-deltas-report: true |
| 99 | + |
| 100 | + # When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report |
| 101 | + report: |
| 102 | + needs: [build] |
| 103 | + permissions: |
| 104 | + # needed to post/update comment on PR threads |
| 105 | + pull-requests: write |
| 106 | + if: github.event_name == 'pull_request' |
| 107 | + uses: nRF24/.github/.github/workflows/arduino_size_deltas.yaml@main |
0 commit comments