Skip to content

Commit

Permalink
build: create tests
Browse files Browse the repository at this point in the history
  • Loading branch information
F33RNI committed Aug 22, 2024
1 parent 2a55757 commit 6972d25
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions examples/TemperatureController/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
build
arduino-cli

0 comments on commit 6972d25

Please sign in to comment.