Skip to content

0.1.1

0.1.1 #10

Workflow file for this run

name: Compile Lawndon Lite
on:
workflow_dispatch:
release:
types: [released]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Arduino cli
uses: arduino/setup-arduino-cli@v1
- name: Install libraries
run: |
arduino-cli lib install IBusBM Servo
- name: Compile Lawndon
uses: arduino/compile-sketches@v1
with:
fqbn: "arduino:avr:mega"
libraries: |
- name: IBusBM
- name: Servo
sketch-paths: |
- ./lawndon
enable-warnings-report: true
verbose: false
cli-compile-flags: |
- --export-binaries
- name: Package build
if: startsWith(github.ref, 'refs/tags/')
run: |
for dir in ./lawndon/build/*; do
if [ -d "${dir}" ]; then
tar -czvf "${dir}.tar.gz" -C "${dir}" .
fi
done
- name: Release build
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
lawndon/build/*.tar.gz