|
8 | 8 | default: "main" |
9 | 9 | boards_to_test: |
10 | 10 | type: string |
11 | | - required: false |
12 | | - default: '["nrf52840dk/nrf52840", "nrf5340dk/nrf5340/cpuapp", "nrf54l15dk/nrf54l15/cpuapp"]' |
| 11 | + required: true |
| 12 | + default: '["nrf52840dk/nrf52840", "nrf5340dk/nrf5340/cpuapp", "nrf54l15dk/nrf54l15/cpuapp", "nrf54l15dk/nrf54l15/cpuapp/ns", "nrf54l15dk/nrf54l10/cpuapp"]' |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - build_manual_tests: |
16 | | - strategy: |
17 | | - fail-fast: false |
18 | | - matrix: |
19 | | - subset: [1, 2, 3, 4, 5] |
20 | | - env: |
21 | | - MAX_SUBSETS: 5 |
22 | | - |
23 | | - runs-on: ubuntu-latest |
24 | | - container: |
25 | | - image: ghcr.io/nrfconnect/sdk-sidewalk:main |
26 | | - options: --cpus 2 |
27 | | - defaults: |
28 | | - run: |
29 | | - shell: nrfutil toolchain-manager launch --install-dir /root/ncs bash -- {0} |
30 | | - |
31 | | - steps: |
32 | | - - name: Checkout |
33 | | - uses: actions/checkout@v4 |
34 | | - with: |
35 | | - fetch-depth: 0 |
36 | | - path: sidewalk |
37 | | - |
38 | | - - name: update NRF |
39 | | - run: | |
40 | | - cd sidewalk && git rev-parse HEAD > /workdir/sidewalk_hash && cd .. && |
41 | | - west init -m https://github.com/nrfconnect/sdk-nrf --mr main . && |
42 | | - cd nrf && |
43 | | - git fetch origin ${{inputs.nrf_revision}}:PR-branch && |
44 | | - git checkout PR-branch && |
45 | | - cd .. && |
46 | | - west config manifest.group-filter +sidewalk && |
47 | | - west update -n -o=--depth=1 --path-cache /workdir/ && |
48 | | - cd sidewalk && git checkout `cat /workdir/sidewalk_hash` && rm -rf /workdir/sidewalk_hash |
49 | | -
|
50 | | - - name: Install Python dependencies |
51 | | - run: | |
52 | | - python3 -m pip install -r nrf/scripts/requirements.txt -r zephyr/scripts/requirements.txt -r sidewalk/scripts/ci/requirements.txt |
53 | | -
|
54 | | - - name: Twister build manual tests |
55 | | - run: | |
56 | | - source zephyr/zephyr-env.sh |
57 | | - west twister --testsuite-root sidewalk/tests/manual --inline-logs --overflow-as-errors --enable-size-report --show-footprint --footprint-from-buildlog -vvv --build-only --subset ${{ matrix.subset }}/${{ env.MAX_SUBSETS }} |
58 | | -
|
59 | | - - name: Prepare artifacts for upload |
60 | | - run: | |
61 | | - mkdir -p subsets/${{ matrix.subset }}_of_${{ env.MAX_SUBSETS }} |
62 | | - cp twister-out/twister.json subsets/${{ matrix.subset }}_of_${{ env.MAX_SUBSETS }} |
63 | | -
|
64 | | - - name: Upload build artifacts |
65 | | - uses: actions/upload-artifact@v4 |
66 | | - if: always() |
67 | | - with: |
68 | | - name: manual-tests-artifacts-${{ matrix.subset }} |
69 | | - path: | |
70 | | - subsets |
71 | | - twister-out/**/*sidewalk*/build.log |
72 | | - twister-out/**/*sidewalk*/zephyr/.config |
73 | | - twister-out/**/*sidewalk*/zephyr/runners.yaml |
74 | | - twister-out/**/*sidewalk*/zephyr/zephyr.elf |
75 | | - twister-out/**/*sidewalk*/zephyr/zephyr.hex |
76 | | - twister-out/**/*sidewalk*/zephyr/merged.hex |
77 | | - twister-out/**/*sidewalk*/zephyr/merged_domains.hex |
78 | | - twister-out/**/*sidewalk*/zephyr/*.dts |
79 | | - twister-out/**/*sidewalk*/zephyr/dfu_application.zip |
80 | | -
|
81 | | - merge_manual_tests: |
82 | | - needs: build_manual_tests |
83 | | - runs-on: ubuntu-latest |
84 | | - permissions: write-all |
85 | | - steps: |
86 | | - - name: Merge Artifacts |
87 | | - uses: actions/upload-artifact/merge@v4 |
88 | | - with: |
89 | | - delete-merged: true |
90 | | - name: manual-tests-artifacts |
91 | | - pattern: manual-tests-artifacts-* |
92 | | - |
93 | 15 | build_and_run_x86_tests: |
94 | 16 | runs-on: ubuntu-latest |
95 | 17 | container: |
|
125 | 47 | - name: Twister build and run x86 tests |
126 | 48 | run: | |
127 | 49 | source zephyr/zephyr-env.sh |
128 | | - west twister --platform native_posix --platform unit_testing --coverage --coverage-basedir sidewalk --coverage-formats html,xml --enable-ubsan --enable-lsan --enable-asan --testsuite-root sidewalk --inline-logs --overflow-as-errors -vvv |
| 50 | + west twister --test-config sidewalk/test_config.yaml --level="Github_tests" --testsuite-root sidewalk --platform native_sim --platform native_posix --platform unit_testing --coverage --coverage-basedir sidewalk --coverage-formats html,xml --enable-ubsan --enable-lsan --enable-asan --inline-logs --overflow-as-errors -vvv |
129 | 51 |
|
130 | 52 | - name: Upload test results |
131 | 53 | uses: actions/upload-artifact@v4 |
|
0 commit comments