@@ -93,20 +93,41 @@ jobs:
9393 - name : Branch name
9494 run : echo running on branch ${GITHUB_REF##*/}
9595
96- # note using a dev branch of the toolkit until version published
96+ # Setup Arduino command line - install esp32 and all the libs flux needs
97+ - name : Arduino - Install and setup the Arduino CLI
98+ uses : arduino/setup-arduino-cli@v1
99+
100+ - name : Arduino - Start config file
101+ run : arduino-cli config init --additional-urls ${{ matrix.board.platforms.source-url}}
102+
103+ - name : Arduino - Update index
104+ run : arduino-cli core update-index
105+
106+
107+ - name : Arduino - Install platform
108+ run : arduino-cli core install ${{ matrix.board.platforms.name}}
109+
110+ - name : Arduino - Install libraries
111+ run : |
112+ arduino-cli config set library.enable_unsafe_install true
113+ arduino-cli lib install --git-url https://github.com/sparkfun/SparkFun_Toolkit.git#dc0f0ca
114+
97115 - name : Compile Sketch
98- 99- with :
100- platforms : ${{ matrix.board.platforms }}
101- fqbn : ${{ matrix.board.fqbn }}
102- libraries : |
103- - source-path: ./
104- - source-url: https://github.com/sparkfun/SparkFun_Toolkit.git#dc0f0ca
105- sketch-paths : |
106- - examples/Example_01_BasicReadings
107- enable-warnings-report : true
108- enable-deltas-report : true
109- verbose : true
116+ run : arduino-cli compile --fqbn ${{ matrix.board.fqbn }} examples/Example_01_BasicReadings
117+ # note using a dev branch of the toolkit until version published
118+ # - name: Compile Sketch
119+ 120+ # with:
121+ # platforms: ${{ matrix.board.platforms }}
122+ # fqbn: ${{ matrix.board.fqbn }}
123+ # libraries: |
124+ # - source-path: ./
125+ # - source-url: https://github.com/sparkfun/SparkFun_Toolkit.git#dc0f0ca
126+ # sketch-paths: |
127+ # - examples/Example_01_BasicReadings
128+ # enable-warnings-report: true
129+ # enable-deltas-report: true
130+ # verbose: true
110131
111132 # outputs:
112133 # report-artifact-name: ${{ steps.report-artifact-name.outputs.report-artifact-name }}
0 commit comments