Skip to content

Commit

Permalink
ci: fix clang-format workflow. add build workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
marenz2569 committed Jun 2, 2024
1 parent d071104 commit a7ad77d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: clang-format-review

# You can be more specific, but it currently only works on pull requests
on: [pull_request]
on: [push, pull_request]

jobs:
clang-format:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install clang-tidy
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
- name: Analyze
run: |
clang-format --dry-run --Werror -style=file $(find ./ -name '*.cpp' -print)
clang-format --dry-run --Werror -style=file $(find ./ -name '*.hpp' -print)
clang-format --dry-run --Werror -style=file $(find ./ -name '*.h' -print)
12 changes: 12 additions & 0 deletions .github/workflows/tetra-decoder-x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

name: "tetra-decoder-x86_64"

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v17
- run: nix build -vL .\?submodules=1#

0 comments on commit a7ad77d

Please sign in to comment.