Lines Matching +full:if +full:- +full:no +full:- +full:files +full:- +full:found

6       - main
7 - v*-branch
8 - collab-*
11 - main
12 - v*-branch
13 - collab-*
16 - cron: '0 3 * * 0'
19 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
20 cancel-in-progress: true
23 twister-build-prep:
24 uses: ./.github/workflows/twister-prep.yaml
26 twister-build:
27 runs-on:
28 group: zephyr-runner-v2-linux-x64-4xlarge
29 needs: twister-build-prep
30 if: needs.twister-build-prep.outputs.size != 0
32 image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
33 options: '--entrypoint /bin/bash'
35 fail-fast: false
37 subset: ${{fromJSON(needs.twister-build-prep.outputs.subset)}}
38 timeout-minutes: 1440
40 CCACHE_DIR: /node-cache/ccache-zephyr
41 CCACHE_REMOTE_STORAGE: "redis://cache-*.keydb-cache.svc.cluster.local|shards=1,2,3"
43 # `--specs` is ignored because ccache is unable to resolve the toolchain specs file path.
44 CCACHE_IGNOREOPTIONS: '-specs=* --specs=*'
47 …TWISTER_COMMON: '--no-detailed-test-id --force-color --inline-logs -v -N -M --retry-failed 3 --tim…
48 WEEKLY_OPTIONS: ' -M --build-only --all --show-footprint --report-filtered'
49 PR_OPTIONS: ' --clobber-output --integration'
50 PUSH_OPTIONS: ' --clobber-output -M --show-footprint --report-filtered'
54 - name: Print cloud service information
60 - name: Apply container owner mismatch workaround
66 git config --global --add safe.directory ${GITHUB_WORKSPACE}
68 - name: Clone cached Zephyr repository
69 continue-on-error: true
71 git clone --shared /repo-cache/zephyrproject/zephyr .
72 git remote set-url origin ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
74 - name: Checkout
78 fetch-depth: 0
79 persist-credentials: false
81 - name: Environment Setup
83 if [ "${{github.event_name}}" = "pull_request_target" ]; then
84 git config --global user.email "bot@zephyrproject.org"
85 git config --global user.name "Zephyr Builder"
86 rm -fr ".git/rebase-apply"
87 rm -fr ".git/rebase-merge"
89 git clean -f -d
90 git log --pretty=oneline | head -n 10
95 west init -l . || true
96 west config manifest.group-filter -- +ci,+optional
97 west config --global update.narrow true
98--path-cache /repo-cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /repo-c…
99 west forall -c 'git reset --hard HEAD'
101 … echo "ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-$( cat SDK_VERSION )" >> $GITHUB_ENV
103 - name: Check Environment
105 cmake --version
106 gcc --version
107 cargo --version
108 rustup target list --installed
109 ls -la
114 - name: Set up ccache
116 mkdir -p ${CCACHE_DIR}
117 ccache -M 10G
118 ccache -p
119 ccache -z -s -vv
121 - name: Update BabbleSim to manifest revision
123 export BSIM_VERSION=$( west list bsim -f {revision} )
126 git fetch -n origin ${BSIM_VERSION}
127 git -c advice.detachedHead=false checkout ${BSIM_VERSION}
129 make everything -s -j 8
131 - if: github.event_name == 'push'
137 …./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${PUSH_O…
138 if [ "${{matrix.subset}}" = "1" ]; then
139 ./scripts/zephyr_module.py --twister-out module_tests.args
140 if [ -s module_tests.args ]; then
141 … ./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PUSH_OPTIONS}
145 - if: github.event_name == 'pull_request_target'
149 rm -f testplan.json
152 … python3 ./scripts/ci/test_plan.py -c origin/${BASE_REF}.. --pull-request --no-detailed-test-id
153 …./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} --load-tests testplan.json…
154if [ "${{matrix.subset}}" = "1" -a ${{needs.twister-build-prep.outputs.fullrun}} = 'True' ]; then
155 ./scripts/zephyr_module.py --twister-out module_tests.args
156 if [ -s module_tests.args ]; then
157 … ./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PR_OPTIONS}
161 - if: github.event_name == 'schedule'
167 …./scripts/twister --subset ${{matrix.subset}}/${{ strategy.job-total }} ${TWISTER_COMMON} ${WEEKLY…
168 if [ "${{matrix.subset}}" = "1" ]; then
169 ./scripts/zephyr_module.py --twister-out module_tests.args
170 if [ -s module_tests.args ]; then
171 … ./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${WEEKLY_OPTIONS}
175 - name: Print ccache stats
176 if: always()
178 ccache -s -vv
180 - name: Upload Unit Test Results
181 if: always()
182 uses: actions/upload-artifact@v4
185 if-no-files-found: ignore
187 twister-out/twister.xml
188 twister-out/twister.json
192 - if: matrix.subset == 1 && github.event_name == 'push'
196 FREEZE_FILE="frozen-requirements.txt"
198 version="$(git describe --abbrev=12 --always)"
199 echo -e "# Generated at $timestamp ($version)\n" > $FREEZE_FILE
200 pip freeze | tee -a $FREEZE_FILE
202 - if: matrix.subset == 1 && github.event_name == 'push'
204 uses: actions/upload-artifact@v4
208 frozen-requirements.txt
210 twister-test-results:
213 - twister-build
214 runs-on: ubuntu-22.04
215 # the build-and-test job might be skipped, we don't need to run this job then
216 if: success() || failure()
219 - name: Download Artifacts
220 uses: actions/download-artifact@v4
224 - name: Merge Test Results
230 - name: Upload Unit Test Results in HTML
231 if: always()
232 uses: actions/upload-artifact@v4
235 if-no-files-found: ignore
239 - name: Publish Unit Test Results
240 uses: EnricoMi/publish-unit-test-result-action@v2
243 files: "**/twister.xml"
245 twister-status-check:
246 if: always()
249 - twister-build-prep
250 - twister-build
251 uses: ./.github/workflows/ready-to-merge.yml