Comments (2)
I tried with the following;
name: Compile Examples
on: [push, pull_request]
jobs:
build-arduino:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[arduino]')
steps:
- uses: actions/checkout@v3
- uses: arduino/compile-sketches@v1
with:
libraries: |
- source-path: ./
build-esp8266:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[esp8266]')
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Config additional Boards for ESP8266 platform
run: |
arduino-cli config add board_manager.additional_urls http://arduino.esp8266.com/stable/package_esp8266com_index.json
- name: List ESP8266 Boards
run: |
arduino-cli core search esp8266
- name: Install ESP8266 platform
run: |
arduino-cli core install esp8266:esp8266
- name: Compile code
run: |
arduino-cli compile --fqbn esp8266:esp8266:d1_mini ./examples/Wemos_D1_mini_AM2302_Sensor_Array_Example/Wemos_D1_mini_AM2302_Sensor_Array_Example.ino
But failed also:
How does it work to install additional Boards in arduino workflow?
from compile-sketches.
Hi @hasenradball. This issue tracker is only to be used for reporting bugs with the arduino/compile-sketches GitHub Actions action, or submitting feature requests for the action. For assistance with setting up GitHub Actions workflows for your Arduino projects, please use Arduino Forum:
We'll be happy to help you over there.
In addition, your problem is related to using Arduino CLI directly in the workflow, rather than the the arduino/compile-sketches GitHub Actions action so it is also off topic for this repository.
from compile-sketches.
Related Issues (20)
- Ability to exclude specific examples in a matrix build HOT 3
- Ability to prep build environment without building HOT 3
- Library not included, when `source-path:` points to private repo HOT 3
- Library version is not working HOT 1
- Automatically load libraries from `depends` field in `library.propreties` HOT 2
- Incorrect and insufficient documentation of `cli-compile-args` input data format HOT 2
- cli-compile-flags HOT 1
- compile-sketches reporting 403 when trying to download arduino-cli HOT 5
- Allow FQBN to be defined in build profile alone
- Cannot build a sketch for esp8266 HOT 2
- Support for latest Mac and Windows OS
- Sketches with `#include Math.h` do not compile via GH Action (but do locally) HOT 1
- compilesketches.py error before compile that related to recent update HOT 2
- could a runner's cache be supported? HOT 4
- Improve documentation of data format of dependency inputs HOT 1
- Spaces in FQBN are not supported HOT 3
- compile-sketches uses gnu++11... HOT 3
- Deprecation warning HOT 1
- Rate limiting failures have started appearing frequently in the past few weeks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compile-sketches.