diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 0000000..721227e --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,29 @@ +name: Compile Sketch + +# The workflow will run on every push and pull request to the repository +on: + - push + - pull_request + +jobs: + compile-sketch: + runs-on: ubuntu-latest + + steps: + # This step makes the contents of the repository available to the workflow + - name: Checkout repository + uses: actions/checkout@v4 + + # For more information: https://github.com/arduino/compile-sketches#readme + - name: Compile sketch + uses: arduino/compile-sketches@v1 + with: + # Compile for Arduino Nano Every + fqbn: arduino:megaavr:nona4809 + sketch-paths: | + # Configure the action to search all folders under the root of the repository for sketches and compile them. + # This is formatted as a YAML list, which makes it possible to have multiple sketch paths if needed. + - ./ + libraries: | + # no libraries + -