Skip to content

Commit

Permalink
Always run clang-format first in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 4, 2022
1 parent b148cf5 commit 5bbcfd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

clang-tidy:
needs: clang-format
runs-on: ubuntu-22.04
env:
CXX: clang++-14
Expand Down Expand Up @@ -65,6 +66,7 @@ jobs:
run-clang-tidy-14 -header-filter='(tests|include/llama|examples)' -extra-arg=--no-cuda-version-check -extra-arg=-nocudalib -extra-arg=-Wno-unused-command-line-argument '^(?!.*'$PWD').*$'
coverage:
needs: clang-format
runs-on: ubuntu-22.04
env:
CXX: g++
Expand Down Expand Up @@ -106,6 +108,7 @@ jobs:
verbose: true

amalgamation:
needs: clang-format
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
Expand All @@ -120,6 +123,7 @@ jobs:
if-no-files-found: error

build-ubuntu:
needs: clang-format
runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
env:
CXX: ${{ matrix.cxx }}
Expand Down Expand Up @@ -272,6 +276,7 @@ jobs:
build/tests
build-windows:
needs: clang-format
runs-on: ${{ matrix.runs-on }}
env:
VCPKG_DEFAULT_TRIPLET: x64-windows
Expand Down Expand Up @@ -306,6 +311,7 @@ jobs:
build/$CONFIG/tests
build-macos:
needs: clang-format
runs-on: ${{ matrix.os }}
name: build-${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 5bbcfd0

Please sign in to comment.