-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (35 loc) · 856 Bytes
/
ci.yml
File metadata and controls
46 lines (35 loc) · 856 Bytes
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
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright lowRISC Contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
runs-on: ["self-hosted", "nixos"]
defaults:
run:
shell: "nix develop -c bash -e {0}"
steps:
- uses: actions/checkout@v5
- name: Prepare Nix environment
run: |
true
- name: License check
run: |
reuse lint
- name: Generate software buildsystem
run: |
cmake -B build -S .
- name: Lint - Clang Format
run: |
./clang-format.sh check
- name: Build software
run: |
cmake --build build -j $(nproc)
- name: Nix build
run: |
nix build