From d6592814c063d8e5f5e0abc28f67025aed8c5229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claus=20N=C3=A4veke?= Date: Mon, 24 Jun 2024 18:23:36 +0200 Subject: [PATCH] Add arduino cli build to GH Actions (#218) * Add arduino cli build --- .github/workflows/arduino-cli.yml | 42 +++++++++++++++++++++++++++++++ .github/workflows/main.yml | 5 +++- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/arduino-cli.yml diff --git a/.github/workflows/arduino-cli.yml b/.github/workflows/arduino-cli.yml new file mode 100644 index 0000000..87de09a --- /dev/null +++ b/.github/workflows/arduino-cli.yml @@ -0,0 +1,42 @@ +name: Arduino CLI CI +on: + schedule: + - cron: '0 0 * * 5' + push: + branches: [ "main" ] + paths-ignore: + - '**.md' + pull_request: + branches: [ "main" ] + paths-ignore: + - '**.md' + release: + types: [ published, created, edited ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + platform_version: [ "latest", "2.0.17" ] + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v4 + - uses: arduino/compile-sketches@v1 + with: + fqbn: esp32:esp32:esp32 + platforms: | + - name: "esp32:esp32" + version: ${{ matrix.platform_version }} + libraries: | + - name: TFT_eSPI + - name: XPT2046_Touchscreen + - name: XPT2046_Bitbang_Slim + - source-url: https://github.com/schreibfaul1/ESP32-audioI2S.git + sketch-paths: | + - "Examples/Basics" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36adb8a..41faaac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,7 +6,10 @@ on: branches: ["main"] paths-ignore: - '**.md' - + pull_request: + branches: [ "main" ] + paths-ignore: + - '**.md' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: