From 4f3a6ea8ddf4d66f0985c6d82faa263cb937185e Mon Sep 17 00:00:00 2001 From: Wastl Kraus Date: Thu, 30 Mar 2023 15:03:47 +0200 Subject: [PATCH] First steps using GitHub Action --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f3072c8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,26 @@ +name: Arduino CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Arduino CLI + run: | + curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/local/bin sh + arduino-cli core update-index + arduino-cli core install esp32:esp32 + + - name: Compile sketch + run: | + arduino-cli compile --fqbn ${{ matrix.board }} ${{ github.workspace }}/example/dshot300 + env: + ARDUINO_LIBRARY_PATH: ${{ github.workspace }}/libraries + ARDUINO_DATA_PATH: ${{ github.workspace }}/arduino-data + matrix: + board: [esp32:esp32]