Repair SY6970 chip to read battery voltage and obtain battery access … #77
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
name: PlatformIO CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
paths: | |
- "src/**" | |
- "examples/**" | |
- ".github/workflows/platformio.yml" | |
- "platformio.ini" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: | |
- examples/AXP192_Example/AXP192_Example.ino | |
- examples/AXP202_Example/AXP202_Example.ino | |
- examples/AXP2101_ADC_Example/AXP2101_ADC_Example.ino | |
- examples/AXP2101_Charge_Example/AXP2101_Charge_Example.ino | |
- examples/AXP2101_Charge_Current_Setting/AXP2101_Charge_Current_Setting.ino | |
- examples/AXP2101_Example/AXP2101_Example.ino | |
- examples/AXP2101_InterruptExample/AXP2101_InterruptExample.ino | |
- examples/AXP2101_Sleep_Example/AXP2101_Sleep_Example.ino | |
- examples/AXP2101_Voltage_Example/AXP2101_Voltage_Example.ino | |
- examples/SY6970_Example/SY6970_Example.ino | |
- examples/SY6970_Watchdog_Example/SY6970_Watchdog_Example.ino | |
- examples/SY6970_Shutdown_Example/SY6970_Shutdown_Example.ino | |
- examples/XPowersLibInterface_Example/XPowersLibInterface_Example.ino | |
- examples/AXP2101_LowBatteryWarningExample/AXP2101_LowBatteryWarningExample.ino | |
- examples/BQ25896_Example/BQ25896_Example.ino | |
- examples/BQ25896_Shutdown_Example/BQ25896_Shutdown_Example.ino | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/pip | |
~/.platformio/.cache | |
key: ${{ runner.os }}-pio | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: Install PlatformIO Core | |
run: pip install --upgrade platformio | |
- name: Run PlatformIO | |
run: pio ci --lib="." --board=esp32dev --board=esp32-c3-devkitm-1 | |
env: | |
PLATFORMIO_BUILD_FLAGS: -D XPOWERS_NO_ERROR | |
PLATFORMIO_CI_SRC: ${{ matrix.example }} |