This repository has been archived by the owner on Dec 20, 2024. It is now read-only.
Add libffi7 for python 3.8 support #111
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: Verify Dockerfile | |
on: pull_request | |
jobs: | |
build: | |
strategy: | |
# Don't overwhelm the toolchain server | |
max-parallel: 1 | |
matrix: | |
include: | |
- sdk_nrf_branch: main | |
toolchain_version: v2.5.0 | |
native_board: native_sim | |
- sdk_nrf_branch: v2.5-branch | |
toolchain_version: v2.5.0 | |
native_board: native_sim | |
- sdk_nrf_branch: v2.4-branch | |
toolchain_version: v2.4.1 | |
native_board: native_posix | |
- sdk_nrf_branch: v2.3-branch | |
toolchain_version: v2.3.0 | |
native_board: native_posix | |
- sdk_nrf_branch: v2.2-branch | |
toolchain_version: v2.2.0 | |
native_board: native_posix | |
- sdk_nrf_branch: v2.1-branch | |
toolchain_version: v2.1.3 | |
native_board: native_posix | |
- sdk_nrf_branch: v2.0-branch | |
toolchain_version: v2.0.2 | |
native_board: native_posix | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build image | |
run: | | |
docker build -t nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} \ | |
--build-arg sdk_nrf_branch=${{ matrix.sdk_nrf_branch }} \ | |
--build-arg toolchain_version=${{ matrix.toolchain_version }} \ | |
. | |
- name: Build asset_tracker_v2 application | |
run: | | |
docker run --rm \ | |
-v ${PWD}:/workdir/project \ | |
-w /workdir/nrf/applications/asset_tracker_v2 \ | |
nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} \ | |
west build -b nrf9160dk_nrf9160ns --build-dir /workdir/project/build -- -DEXTRA_CFLAGS="-Werror -Wno-dev" | |
- uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
name: asset_tracker_v2-${{ matrix.sdk_nrf_branch }} | |
path: | | |
build/zephyr/merged.hex | |
build/zephyr/app_update.bin | |
- name: Ensure nrfjprog works | |
run: | | |
docker run --rm nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} nrfjprog -v | |
- name: Ensure clang-format works | |
run: | | |
docker run --rm nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} clang-format --version | |
- name: Ensure native build works | |
run: | | |
docker run --rm nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} west build -b ${{ matrix.native_board }} zephyr/samples/hello_world | |
- name: Ensure zephyr twister unit tests works | |
run: | | |
docker run --rm nordicplayground/nrfconnect-sdk:${{ matrix.sdk_nrf_branch }} ./zephyr/scripts/twister -p ${{ matrix.native_board }} -T zephyr/samples/subsys/testsuite/integration |