diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6f11f57 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +on: +- push +- pull_request + +jobs: + build: + name: ${{ matrix.arduino-boards-fqbn }} - test compiling examples + + runs-on: ubuntu-latest # I picked Ubuntu to use shell scripts. + + strategy: + matrix: + # The matrix will produce one job for each configuration parameter of type `arduino-boards-fqbn` + # In the Arduino IDE, the fqbn is printed in the first line of the verbose output for compilation as parameter -fqbn=... for the "arduino-builder -dump-prefs" command + # You may add a suffix behind the fqbn with "|" to specify one board for e.g. different compile options like arduino:avr:uno|trace + ############################################################################################################# + arduino-boards-fqbn: + - arduino:avr:uno + - arduino:avr:mega + + # Do not cancel all jobs / architectures if one job fails + fail-fast: false + + steps: + - name: Checkout + uses: actions/checkout@master + + - name: Compile all examples + uses: ArminJo/arduino-test-compile@v3 + with: + required-libraries: AccelStepper,Servo,DFRobotDFPlayerMini,U8g2,EncButton,NmraDcc,MobaTools + arduino-board-fqbn: ${{ matrix.arduino-boards-fqbn }}