-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New CI working for Arduino UNO R4 and ESP8266
- Loading branch information
Showing
4 changed files
with
56 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
only_boards: | ||
- esp8266:esp8266:generic | ||
- arduino:renesas_uno:unor4wifi | ||
library_archives: | ||
- Nanopb=https://github.com/nanopb/nanopb/archive/refs/tags/0.4.7.tar.gz=17yaz3sn0fjhxbhjy27hc2960d4h4j4m5xvxqv3psbpi0r8w82hj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
name: Build Arduino | ||
|
||
name: "CI" | ||
on: | ||
pull_request: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
ci: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
- name: Arduino CI | ||
uses: Arduino-CI/[email protected] | ||
env: | ||
EXPECT_EXAMPLES: true | ||
EXPECT_UNITTESTS: false | ||
- name: Checkout this repository | ||
uses: actions/checkout@v2 | ||
- name: Cache for arduino-ci | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.arduino15 | ||
key: ${{ runner.os }}-arduino | ||
- name: Install nix | ||
uses: cachix/install-nix-action@v12 | ||
- run: nix-shell -I nixpkgs=channel:nixpkgs-unstable -p arduino-ci --run "arduino-ci" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: "Update protobufs and regenerate classes" | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
update-protobufs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: Update submodule | ||
run: | | ||
git submodule update --remote protobufs | ||
- name: Download nanopb | ||
run: | | ||
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.7-linux-x86.tar.gz | ||
tar xvzf nanopb-0.4.7-linux-x86.tar.gz | ||
mv nanopb-0.4.7-linux-x86 nanopb-0.4.7 | ||
- name: Re-generate protocol buffers | ||
run: | | ||
./bin/regen-protos.sh | ||
- name: Create pull request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
add-paths: | | ||
protobufs | ||
src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters