Skip to content

Commit

Permalink
Improve GitHub Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed May 15, 2024
1 parent 376114f commit 5bac310
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,25 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Build
working-directory: ${{github.workspace}}
run: cmake -S . -B build && cmake --build build
- name: Setup LLVM toolchain
uses: KyleMayes/install-llvm-action@v2
with:
version: "16.0"

- name: Build
working-directory: ${{github.workspace}}
run: cmake -S . -B build && cmake --build build

- name: Unit Test
working-directory: ${{github.workspace}}
run: ./build/filehash-test

- name: Check formatting
working-directory: ${{github.workspace}}
run: clang-format --dry-run --Werror src/* test/*

- name: Check codestyle
working-directory: ${{github.workspace}}
run: clang-tidy -p ./compile_commands.json test/*.cpp
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ with

For a developement consider using provided
`Makefile`, as it automates some routine tasks.

Expected artifact can be run with

```bash
./build/filehash
```

0 comments on commit 5bac310

Please sign in to comment.