Skip to content

experiment with blink #7

experiment with blink

experiment with blink #7

# name of the job
name: Compile i2c scanner
# specify which paths to watch for changes
on:
push:
paths:
- 'examples/i2c_scanner/*'
- .github/workflows/compile.yaml
- .github/workflows/compile-i2c_scanner.yaml
# run compile via the compile.yaml
jobs:
compile:
strategy:
fail-fast: false
matrix:
# CHANGE program/lib/aux as needed
program:
- name: 'i2s_scanner'
src: 'examples/i2c_scanner'
lib: ''
aux: ''
# CHANGE platforms as needed
platform:
- {name: 'photon', version: '2.3.1'}
- {name: 'argon', version: '4.2.0'}
- {name: 'p2', version: '6.3.2'}
# program name
name: ${{ matrix.program.name }}-${{ matrix.platform.name }}-${{ matrix.platform.version }}
# workflow call
uses: ./.github/workflows/compile.yaml
secrets: inherit
with:
program: ${{ matrix.program.name }}
platform: ${{ matrix.platform.name }}
version: ${{ matrix.platform.version }}
src: ${{ matrix.program.src }}
lib: ${{ matrix.program.lib }}
aux: ${{ matrix.program.aux }}