Skip to content

Updating usage of PMIC startup code #143

Updating usage of PMIC startup code

Updating usage of PMIC startup code #143

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: zephyrprojectrtos/ci:v0.26.14
env:
CMAKE_PREFIX_PATH: /opt/toolchains
strategy:
matrix:
sample:
[
accelerometer,
accelerometer_zbus,
active_sleep,
at_client,
battery,
blinky,
bme280,
button,
deep_sleep,
external_flash,
external_rtc,
external_rtc_time_sync,
led_pwm,
mfw_update,
sms,
]
target:
[
circuitdojo_feather_nrf9160/nrf9160/ns,
circuitdojo_feather_nrf9161/nrf9161/ns,
]
exclude:
# List of target-app combinations to exclude
- target: circuitdojo_feather_nrf9160/nrf9160/ns
sample: deep_sleep
- target: circuitdojo_feather_nrf9161/nrf9161/ns
sample: external_rtc
- target: circuitdojo_feather_nrf9161/nrf9161/ns
sample: external_rtc_time_sync
- target: circuitdojo_feather_nrf9161/nrf9161/ns
sample: led_pwm
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
path: nfed
- name: Set variables
working-directory: nfed
id: vars
run: |
echo "branch=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Initialize
working-directory: nfed
run: |
pip3 install -U west
west init -l .
west update
pip3 install -r ../zephyr/scripts/requirements-base.txt
- name: Extract target base name
working-directory: nfed
id: target_base
run: |
target_base=$(echo "${{ matrix.target }}" | cut -d'/' -f1)
echo "target_base=$target_base" >> $GITHUB_OUTPUT
- name: Build ${{ matrix.sample }} for ${{ matrix.target }}
working-directory: nfed
run: |
west build -b ${{ matrix.target }} -s samples/${{ matrix.sample }} -p --sysbuild
mkdir -p .out
cp build/merged.hex .out/${{ matrix.sample }}_${{ steps.target_base.outputs.target_base }}_merged.hex
- name: Archive firmware
uses: actions/upload-artifact@v3
with:
name: nfed_${{ steps.vars.outputs.branch }}_${{ steps.vars.outputs.sha_short }}
path: nfed/.out/