Skip to content

Commit

Permalink
Arduino build CI/CD workflow pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Apr 23, 2024
1 parent fbf3ba4 commit f113559
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Arduino CI

on:
push:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Chocolatey (Windows package manager)
if: runner.os == 'Windows'
run: |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
- name: Install Arduino CLI (Windows)
if: runner.os == 'Windows'
run: choco install arduino-cli -y

- name: AVR Core Installation
run: arduino-cli.exe core install arduino:avr

- name: Build Arduino library
run: |
arduino-cli compile --fqbn arduino:avr:uno --library src --build-path build examples/full_test/full_test.ino
arduino-cli compile --fqbn arduino:avr:uno --library src --build-path build examples/nand_network/nand_network.ino

0 comments on commit f113559

Please sign in to comment.