aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
blob: 14ed8b12a5ad126fd9013cb8b4b23ed9ae32b6b4 (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
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 with DEBUG on
        run: make V=1 DEBUG=1