chore: update asset tracker from upstream + bump memfault #120
Workflow file for this run
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: Build | |
run-name: ${{ inputs.run_name }} | |
env: | |
DEFAULT_PYTHON: 3.8 | |
ACTIONS_STEP_DEBUG: true | |
on: | |
pull_request: null | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
run_name: | |
description: 'Name of run to identify it from other runs' | |
required: false | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/memfault/nrf-connect-sdk:2024-10-07 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
id: python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.DEFAULT_PYTHON }} | |
- name: Install Zephyr SDK as CMake package | |
run: | | |
${ZEPHYR_SDK_INSTALL_DIR}/setup.sh -c | |
- name: Setup west workspace | |
run: | | |
cd $GITHUB_WORKSPACE | |
cd ../ | |
python -m venv venv | |
. venv/bin/activate | |
pip install -U pip==21.1 | |
pip install west==1.2.0 | |
west init -l memfault-asset-tracker | |
west update | |
pip install -r zephyr/scripts/requirements.txt | |
pip install -r nrf/scripts/requirements-build.txt | |
- name: Build app without Memfault overlay | |
run: | | |
cd $GITHUB_WORKSPACE | |
cd ../ | |
python -m venv venv | |
. venv/bin/activate | |
west build -b thingy91/nrf9160/ns -p always memfault-asset-tracker | |
- name: Build app with Memfault overlay | |
run: | | |
cd $GITHUB_WORKSPACE | |
cd ../ | |
. venv/bin/activate | |
west build -b thingy91/nrf9160/ns -p always memfault-asset-tracker -- \ | |
-DCONFIG_MEMFAULT_NCS_PROJECT_KEY=\"DUMMY_KEY\" \ | |
-DOVERLAY_CONFIG=overlay-memfault.conf \ | |
-DCONFIG_MEMFAULT_NCS_FW_VERSION_STATIC=y \ | |
-DCONFIG_MEMFAULT_NCS_FW_VERSION=\"${{ env.SOFTWARE_VERSION }}\" | |
rm -rf ~/zephyr-thingy91-path-cache | |
cp -r ${PWD} ~/zephyr-thingy91-path-cache | |
- name: Update Zephyr Project Cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/zephyr-thingy91-path-cache | |
key: zephyr-thingy91-{{ checksum $GITHUB_WORKSPACE/west.yml }}-v2 |