aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 21c5f718279696019eba407d55b9d44662c7bb05 (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
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  CROSS_COMPILE: riscv64-linux-gnu-
  CC_SUFFIX: -14

jobs:
  test:
    name: Continuous Integration
    runs-on: ubuntu-24.04

    steps:
      - name: Checkout Code
        uses: actions/checkout@v4

      - name: Install dependencies from Ubuntu sources
        run: sudo apt-get install clang-format gcc-14-riscv64-linux-gnu

      - name: Lint
        run: make lint V=1

      - name: Build and run unit tests
        run: make V=1

      - name: Build and run unit tests with DEBUG on
        run: make V=1 DEBUG=1