forked from NicoAleman/vesc_pkg-float
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (30 loc) · 990 Bytes
/
ci.yml
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
name: CI
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
jobs:
CI:
runs-on: ubuntu-22.04
if: github.repository_owner == 'lukash'
permissions:
id-token: "write"
contents: "read"
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@v4
- uses: DeterminateSystems/flake-checker-action@v4
- uses: rrbutani/use-nix-shell-action@v1
with:
flakes: nixpkgs#clang-tools_17, nixpkgs#gcc-arm-embedded-13, nixpkgs#gnumake, nixpkgs#lefthook, github:lukash/vesc_tool-flake/release_6_02
- name: clang-format
id: clang-format
run: lefthook run clang-format-check
- name: build
# make this step run even if clang-format failed
if: success() || (failure() && steps.clang-format.conclusion == 'failure')
run: make -j
working-directory: refloat/