Merge branch 'master' of https://github.com/fredlcore/BSB-LAN #153
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Arduino Due CI Build | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: due-ci-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| build-due: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install arduino-cli | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh | |
| sudo mv ./bin/arduino-cli /usr/local/bin/arduino-cli | |
| - name: Install Arduino SAM core (Due) | |
| run: | | |
| arduino-cli core update-index | |
| arduino-cli core install arduino:sam | |
| - name: Setup config files | |
| run: | | |
| cp BSB_LAN/BSB_LAN_config.h.default BSB_LAN/BSB_LAN_config.h | |
| cp BSB_LAN/BSB_LAN_custom_defs.h.default BSB_LAN/BSB_LAN_custom_defs.h | |
| - name: Install dependencies | |
| run: | | |
| arduino-cli lib install Ethernet | |
| - name: Compile for Due | |
| run: | | |
| arduino-cli compile \ | |
| --fqbn arduino:sam:arduino_due_x \ | |
| --libraries BSB_LAN/libraries \ | |
| BSB_LAN |