Skip to content

Merge pull request #3 from KopfLab/dev #25

Merge pull request #3 from KopfLab/dev

Merge pull request #3 from KopfLab/dev #25

# name of the job
name: Compile publish
# specify which paths to watch for changes
on:
push:
paths:
- examples/publish
- LoggerCore/src
- .github/workflows/compile.yaml
- .github/workflows/compile-publish.yaml
# run compile via the compile.yaml
jobs:
compile:
strategy:
fail-fast: false
matrix:
# CHANGE program and specify lib/aux and non-default src as needed
program:
- name: 'publish'
src: 'examples/publish'
lib: 'DeviceNameHelperRK FileHelperRK SequentialFileRK PublishQueueExtRK SparkFun_Qwiic_OpenLog_Arduino_Library'
aux: 'LoggerCore/src/LoggerPlatform* LoggerCore/src/LoggerUtils* LoggerCore/src/LoggerPublisher* LoggerCore/src/LoggerSD*'
# CHANGE platforms as needed
platform:
- {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:
platform: ${{ matrix.platform.name }}
version: ${{ matrix.platform.version }}
program: ${{ matrix.program.name }}
src: ${{ matrix.program.src || '' }}
lib: ${{ matrix.program.lib || '' }}
aux: ${{ matrix.program.aux || '' }}