Skip to content

Commit 419ea5a

Browse files
author
James Foster
authored
Use Arduino-CI/action@stable-1.x (#8)
Update test to use stable-1.x of the Arduino-CI action.
1 parent 5ec2731 commit 419ea5a

File tree

3 files changed

+16
-47
lines changed

3 files changed

+16
-47
lines changed

.github/workflows/arduino_ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Arduino CI
3+
4+
on: [push, pull_request]
5+
6+
jobs:
7+
arduino_ci:
8+
runs-on: ubuntu-latest
9+
env:
10+
CUSTOM_INIT_SCRIPT: scripts/install_libraries.sh
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: Arduino-CI/action@stable-1.x

.github/workflows/max.yaml

Lines changed: 0 additions & 34 deletions
This file was deleted.

scripts/install_libraries.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
#!/bin/bash
2+
# arduino_ci runs this script in its GitHub Action because it is referenced by CUSTOM_INIT_SCRIPT
3+
# arduino_ci ensures that the script is run in the libraries directory
24

3-
# this script has two use cases
4-
# 1 - CI testing and local development of this library only (SHALLOW)
5-
# 2 - Development of this library AND the supporting libraries
6-
# comment this out if you want full depth for the supporting libraries (case 2)
75
export SHALLOW='--depth 1 --branch master --single-branch '
8-
# use this if you started with SHALLOW and now want the full repository with history
6+
# If you want the full repository with history, execute the following
97
# git fetch --unshallow
108

11-
# ensure we have `arduino_ci`
12-
bundle config --local path vendor/bundle
13-
bundle install
14-
15-
# set up directories
16-
bundle exec ensure_arduino_installation.rb
17-
cd $(bundle exec arduino_library_location.rb)
18-
199
# add missing libraries
2010
export GITHUB="https://github.com/Arduino-CI"
2111
if [ ! -d "./Adafruit_BusIO" ] ; then

0 commit comments

Comments
 (0)