feat(zephyr): port to zephyr 4.1.0 #384
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: Twister | |
on: pull_request | |
jobs: | |
local_twister: | |
name: Native & unit tests | |
runs-on: ubuntu-22.04 | |
container: | |
image: ghcr.io/worldcoin/${{ vars.DOCKER_IMAGE_NAME }}:${{ vars.DOCKER_IMAGE_TAG }} | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 | |
with: | |
path: "${{ github.job }}/orb" | |
- name: Initialize West repo | |
run: | | |
cd ${{ github.job }} | |
git config --global --add url."https://wc-cicd:${{ secrets.GIT_HUB_TOKEN }}@github.com/worldcoin/".insteadOf "git@github.com:worldcoin/" | |
cd orb && west init -l --mf west.yml . || echo "Ignoring west init error $?" # might be already initialized | |
west update --narrow --fetch-opt=--depth=1 | |
- name: Twister unit tests | |
run: | | |
cd ${{ github.job }} | |
if ! ./zephyr/scripts/twister -T orb/main_board -vv -c -p unit_testing; then | |
find twister-out/ \( -name 'build.log' -o -name 'handler.log' -o -name 'device.log' \) -exec cat {} \; | |
false | |
fi | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action@ca89ad036b5fcd524c1017287fb01b5139908408 # pin@v2 | |
if: always() | |
with: | |
junit_files: "${{ github.job }}/twister-out/twister_report.xml" | |
comment_mode: off | |
- name: Clean | |
if: always() | |
run: | | |
rm -rf ${{ github.job }}/twister-out ${{ github.job }}/twister_report_local.xml ${{ github.job }}/junit.xml |