diff --git a/.github/workflows/build-ncs.yml b/.github/workflows/build-ncs.yml index 4222c0c..621f72d 100644 --- a/.github/workflows/build-ncs.yml +++ b/.github/workflows/build-ncs.yml @@ -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 @@ -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