Skip to content

Commit

Permalink
CI: Fix misplaced and mangled ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lukash committed Jun 21, 2024
1 parent 4bb2467 commit 83dcd6a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci-test.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 83dcd6a

Please sign in to comment.