Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions .github/workflows/build-smc-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: Build Check

on:
push:
branches:
- main
- v*-branch
- collab*
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- main
- v*-branch
- collab*

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

jobs:
genboards:
runs-on: ubuntu-24.04
outputs:
boards: ${{ steps.genboards.outputs.boards }}
steps:
- uses: actions/checkout@v4
- id: genboards
shell: bash
run: |
BOARDS="$(jq -c '[.[] | .board]' .github/ci_boards.json)"
echo "boards=$BOARDS" | tee -a $GITHUB_OUTPUT

smc-build-only-tests:
runs-on: ubuntu-24.04
needs: genboards
strategy:
fail-fast: false
matrix:
board: ${{ fromJson(needs.genboards.outputs.boards) }}
steps:
- uses: actions/checkout@v4
with:
path: tt-zephyr-platforms

- uses: ./tt-zephyr-platforms/.github/workflows/prepare-zephyr
with:
app-path: tt-zephyr-platforms

- name: Generate BOARD
working-directory: tt-zephyr-platforms
shell: bash
run: |
BOARD="$(./scripts/rev2board.sh "${{ matrix.board }}" smc)"
echo "BOARD=$BOARD" | tee "$GITHUB_ENV"

- name: Free Disk Space
uses: jlumbroso/free-disk-space@v1.3.1
with:
docker-images: false

- name: Build SMC Build Only Tests
shell: bash
run: |
./zephyr/scripts/twister \
-p $BOARD \
--build-only \
-T tt-zephyr-platforms/app/smc \
--outdir twister-smc-tests-${{ matrix.board }} \
--runtime-artifact-cleanup pass \
-j 2

- name: Upload Artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: build-smc-tests-${{ matrix.board }}
include-hidden-files: true
path: |
twister-smc-tests-${{ matrix.board }}/**/handler.log
twister-smc-tests-${{ matrix.board }}/**/twister_harness.log
twister-smc-tests-${{ matrix.board }}/**/zephyr.dts
twister-smc-tests-${{ matrix.board }}/**/.config
twister-smc-tests-${{ matrix.board }}/**/*.map
twister-smc-tests-${{ matrix.board }}/**/zephyr.elf
twister-smc-tests-${{ matrix.board }}/**/*.lst
twister-smc-tests-${{ matrix.board }}/twister.log
twister-smc-tests-${{ matrix.board }}/twister.json
1 change: 1 addition & 0 deletions app/smc/pinctrl.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
&uart0 {
pinctrl-0 = <&uart0_tx_default &uart0_rx_default>;
pinctrl-names = "default";
clock-frequency = <800000000>;
status = "okay";
};

Expand Down
14 changes: 13 additions & 1 deletion app/smc/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tests:
app.recovery:
build_only: true
extra_overlay_confs:
- recovery.conf
- sysbuild/recovery.conf
app.recovery-flash:
sysbuild: true
tags: recovery
Expand Down Expand Up @@ -80,3 +80,15 @@ tests:
- >-
INFO: (?P<test_name>.*) completed.
Failed (?P<fail_count>\d+)/(?P<total_tries>\d+) times.
app.tt_shell:
build_only: true
sysbuild: false
extra_configs:
- CONFIG_SHELL=y
app.tracing:
build_only: true
sysbuild: true
extra_overlay_confs:
- tracing.conf
extra_args:
- EXTRA_DTC_OVERLAY_FILE=tracing.overlay
7 changes: 0 additions & 7 deletions tests/lib/tenstorrent/bh_arc/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ tests:
platform_allow: native_sim
extra_args: DTC_OVERLAY_FILE=app.overlay
tags: bh_arc
lib.tenstorrent.bh_arc.tt_shell:
platform_allow: native_sim
build_only: true
extra_args: DTC_OVERLAY_FILE=app.overlay
extra_configs:
- CONFIG_SHELL=y
tags: bh_arc
Loading