From 6972d254e161c1ad2eb8f41eb368b5104f59e93b Mon Sep 17 00:00:00 2001 From: F33RNI Date: Thu, 22 Aug 2024 12:08:44 +0300 Subject: [PATCH] build: create tests --- .github/workflows/tests.yml | 23 +++++++++++++++++++++++ examples/TemperatureController/.gitignore | 1 + 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d11eb1c --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,23 @@ +name: Try to compile example + +on: + push: + branches: + - '*' + pull_request: + branches: + - '*' + merge_group: + workflow_dispatch: + +jobs: + test-ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: apt-get install curl + - run: cd examples/TemperatureController + - run: mkdir arduino-cli + - run: curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=./arduino-cli sh + - run: ./arduino-cli/arduino-cli core install arduino:avr + - run: ./arduino-cli/arduino-cli compile --verbose --build-path ./build --library ../../ -b arduino:avr:nano *.ino diff --git a/examples/TemperatureController/.gitignore b/examples/TemperatureController/.gitignore index 378eac2..7c24f6a 100644 --- a/examples/TemperatureController/.gitignore +++ b/examples/TemperatureController/.gitignore @@ -1 +1,2 @@ build +arduino-cli