forked from lukash/refloat
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 747 Bytes
/
ci.yml
File metadata and controls
28 lines (25 loc) · 747 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
name: CI
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
jobs:
ci:
name: CI
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- uses: rrbutani/use-nix-shell-action@v1
with:
flakes: nixpkgs#clang-tools_17, nixpkgs#lefthook
- name: Run clang-format
id: clang-format
run: lefthook run clang-format-check
- name: Build Package
if: success() || (failure() && steps.clang-format.conclusion == 'failure')
uses: ./.github/actions/build