Skip to content

Commit

Permalink
Draft 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jangalda-nsc committed Mar 27, 2024
1 parent 42a4945 commit 5209361
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-ncs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,31 @@ jobs:
runs-on: ubuntu-22.04
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:v2.6.0
steps:
- name: Checkout
- name: Checkout repository with example application
uses: actions/checkout@v3
with:
path: example-application

- name: Initialize
- name: Prepare west project
shell: bash
# /opt/entrypoint.sh is called to set environment variables inside docker container
# It is needed only when using docker container in GitHub Actions due to their limitation
# https://github.com/actions/runner/issues/1964
#
# qemu-system-arm is needed to enable tests on qemu platform
# libffi7 is needed to get libffi.so.7 required by Python3.7 on Ubuntu 22.04
run: |
source /opt/entrypoint.sh
source /opt/entrypoint.sh
west init -l example-application
west update -o=--depth=1 -n
apt-get update && apt-get install -y qemu-system-arm
apt-get update && apt-get install -y qemu-system-arm libffi7
- name: Build firmware
working-directory: example-application
shell: bash
run: |
source /opt/entrypoint.sh
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(dirname $(which nanopb_generator))"
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(dirname $(which libffi.so.7))"
west twister -T app -v --inline-logs --integration

- name: Store hex files
Expand All @@ -41,5 +47,5 @@ jobs:
shell: bash
run: |
source /opt/entrypoint.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ncs/toolchains/2be090971e/opt/nanopb/generator-bin
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$(dirname $(which libffi.so.7))"
west twister -T tests -v --inline-logs --integration

0 comments on commit 5209361

Please sign in to comment.