summaryrefslogtreecommitdiffstats
path: root/.github/workflows/risc-v-gsp-rm-debugger.yml
blob: 401a4f3db66054154c89a1581b85170d5057e55d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# risc-v-gsp-rm-debugger harness CI: build the SDK/demo and run the tool test suite.
# Local simulator only: no secrets, no hardware, no guest, no kernel module.
name: risc-v-gsp-rm-debugger

on:
  push:
    paths:
      - 'debug/risc-v-gsp-rm-vm/**'
      - 'tools/rm*/**'
  pull_request:
    paths:
      - 'debug/risc-v-gsp-rm-vm/**'
      - 'tools/rm*/**'

jobs:
  harness:
    name: risc-v-gsp-rm-debugger tests
    runs-on: ubuntu-latest
    timeout-minutes: 30
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install toolchain
        run: |
          sudo apt-get update
          sudo apt-get install -y qemu-system-misc clang lld-18

      - name: Build SDK and demo
        run: make -C debug/risc-v-gsp-rm-vm sdk demo

      - name: Run unit tests
        working-directory: debug/risc-v-gsp-rm-vm
        run: python3 -m unittest discover -s tests -t .