Skip to content

feat: optimize FLASH and RAM (#80) #37

feat: optimize FLASH and RAM (#80)

feat: optimize FLASH and RAM (#80) #37

name: SoftSIM for nRF91 Build
on:
pull_request:
branches:
- master
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-in-docker-container:
runs-on: ubuntu-22.04
timeout-minutes: 60
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.9.1
defaults:
run:
# Bash shell is needed to set toolchain related environment variables in docker container
# It is a workaround for GitHub Actions limitation https://github.com/actions/runner/issues/1964
shell: bash
strategy:
matrix:
board: [nrf9160dk/nrf9160/ns, nrf9161dk/nrf9161/ns, nrf9151dk/nrf9151/ns, thingy91/nrf9160/ns]
steps:
# Initialize a Zephyr West workspace in its default format
- name: Initialize workspace
run: |
west init -m https://github.com/${GITHUB_REPOSITORY}
# Ensure that the checkout follows only this build sha and not the master branch
- name: Checkout
uses: actions/checkout@v4
with:
path: modules/lib/onomondo-softsim
# Update dependecies and submodules using west
- name: Fetch nRF and Zephyr workspaces and dependecies
run: |
west update -o=--depth=1 --narrow
- name: Build firmware of static profile sample
working-directory: modules/lib/onomondo-softsim/samples/softsim_static_profile
run: |
west build --sysbuild --pristine=always --board ${{ matrix.board }}
- name: Build firmware of external profile sample
working-directory: modules/lib/onomondo-softsim/samples/softsim_external_profile
run: |
west build --sysbuild --pristine=always --board ${{ matrix.board }}
- name: Archive name generator
id: artifact_name
run: echo "artifact_name=$(echo ${{ matrix.board }} | tr "/" "_")" >> $GITHUB_OUTPUT
- name: Archive SoftSIM External Profile Build
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact_name.outputs.artifact_name }}
path: modules/lib/onomondo-softsim/samples/softsim_external_profile/build/merged.hex
overwrite: true
if-no-files-found: warn