Skip to content

Commit e371c3c

Browse files
committed
.github: workflows: build-smc-tests.yml
add a new workflow to test smc app build-only tests Signed-off-by: Sherry Li <xiaoruli@tenstorrent.com>
1 parent fb96671 commit e371c3c

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Build Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v*-branch
8+
- collab*
9+
pull_request:
10+
types:
11+
- opened
12+
- reopened
13+
- synchronize
14+
branches:
15+
- main
16+
- v*-branch
17+
- collab*
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
genboards:
25+
runs-on: ubuntu-24.04
26+
outputs:
27+
boards: ${{ steps.genboards.outputs.boards }}
28+
steps:
29+
- uses: actions/checkout@v4
30+
- id: genboards
31+
shell: bash
32+
run: |
33+
BOARDS="$(jq -c '[.[] | .board]' .github/ci_boards.json)"
34+
echo "boards=$BOARDS" | tee -a $GITHUB_OUTPUT
35+
36+
smc-build-only-tests:
37+
runs-on: ubuntu-24.04
38+
needs: genboards
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
board: ${{ fromJson(needs.genboards.outputs.boards) }}
43+
steps:
44+
- uses: actions/checkout@v4
45+
with:
46+
path: tt-zephyr-platforms
47+
48+
- uses: ./tt-zephyr-platforms/.github/workflows/prepare-zephyr
49+
with:
50+
app-path: tt-zephyr-platforms
51+
52+
- name: Generate BOARD
53+
working-directory: tt-zephyr-platforms
54+
shell: bash
55+
run: |
56+
BOARD="$(./scripts/rev2board.sh "${{ matrix.board }}" smc)"
57+
echo "BOARD=$BOARD" | tee "$GITHUB_ENV"
58+
59+
- name: Build SMC Build Only Tests
60+
shell: bash
61+
run: |
62+
./zephyr/scripts/twister \
63+
-p $BOARD \
64+
--build-only \
65+
-T tt-zephyr-platforms/app/smc \
66+
--outdir twister-smc-tests-${{ matrix.board }} \
67+
-j 2
68+
69+
- name: Upload Artifacts
70+
if: ${{ always() }}
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: build-smc-tests-${{ matrix.board }}
74+
include-hidden-files: true
75+
path: |
76+
twister-smc-tests-${{ matrix.board }}/**/handler.log
77+
twister-smc-tests-${{ matrix.board }}/**/twister_harness.log
78+
twister-smc-tests-${{ matrix.board }}/**/zephyr.dts
79+
twister-smc-tests-${{ matrix.board }}/**/.config
80+
twister-smc-tests-${{ matrix.board }}/**/*.map
81+
twister-smc-tests-${{ matrix.board }}/**/zephyr.elf
82+
twister-smc-tests-${{ matrix.board }}/**/*.lst
83+
twister-smc-tests-${{ matrix.board }}/twister.log
84+
twister-smc-tests-${{ matrix.board }}/twister.json

0 commit comments

Comments
 (0)