bq769x2: Fix alert_mask configuration write-back #338
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: Code check and build tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
# Avoid running twice if pushing to a PR branch in the base repo | |
if: > | |
github.event_name != 'pull_request' || | |
github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
runs-on: ubuntu-latest | |
# Fixed container version to avoid picolibc compile error for v0.26.15 (latest) | |
# https://github.com/zephyrproject-rtos/docker-image/issues/205 | |
container: zephyrprojectrtos/ci:v0.26.14 | |
env: | |
CMAKE_PREFIX_PATH: /opt/toolchains | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: bms-firmware | |
fetch-depth: 0 | |
- name: Initialize | |
working-directory: bms-firmware | |
run: | | |
west init -l . | |
west update --narrow | |
west blobs fetch hal_espressif | |
- name: Coding style check | |
working-directory: bms-firmware | |
run: | | |
apt-get update | |
apt-get install -y clang-format-15 colordiff | |
git status | |
bash scripts/check-style.sh | |
- name: Build firmware | |
working-directory: bms-firmware | |
run: | | |
cd app | |
west build -p -b native_sim | |
west build -p -b bms_5s50_sc | |
west build -p -b bms_8s50_ic@0.2 -- -DEXTRA_CONF_FILE=oled.conf -DSHIELD=uext_oled | |
west build -p -b bms_15s80_sc | |
west build -p -b bms_16s100_sc | |
west build -p -b bms_c1@0.4 | |
rm -rf build | |
west build -b bms_c1@0.4 --sysbuild -p | |
- name: Run unit-tests | |
working-directory: bms-firmware | |
run: | | |
../zephyr/scripts/twister -T ./tests --integration --inline-logs -n |