Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
# Disable header-only parsing to avoid generating header-only
# compile actions that some tools (like hedron's compile-commands
# extractor) can't handle. This prevents running into errors such
# as "No source files found in compile args" when running
# `bazel run @hedron_compile_commands//:refresh_all`.
build --features=-parse_headers

# Fix for "relocation refers to local symbol in discarded section"
build --copt=-fno-asynchronous-unwind-tables
build --linkopt=-Wl,--gc-sections
Expand Down
4 changes: 1 addition & 3 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ HeaderFilterRegex: ".*/openfeature/.*"
ExcludeHeaderFilterRegex: ".*\\.pb\\.h|.*\\.grpc\\.pb\\.h"

# Treat all warnings as errors (optional, good for strict CI/CD)
WarningsAsErrors: ""
WarningsAsErrors: "*"

CheckOptions:
- key: readability-identifier-naming.ClassCase
Expand Down Expand Up @@ -74,5 +74,3 @@ CheckOptions:
value: 1
- key: readability-braces-around-statements.ShortStatementLines
value: 1

SystemHeaders: true
10 changes: 8 additions & 2 deletions .github/workflows/ci-format-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
submodules: 'recursive'
submodules: "recursive"

- uses: bazel-contrib/setup-bazel@0.18.0
with:
Expand All @@ -31,14 +31,17 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
submodules: 'recursive'
submodules: "recursive"

- uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true

- name: Build all targets
run: bazel build //...

- name: Build compilation database
run: bazel run @hedron_compile_commands//:refresh_all

Expand All @@ -49,6 +52,9 @@ jobs:
with:
style: "file" # Use .clang-format config file.
tidy-checks: "" # Use .clang-tidy config file.
database: "compile_commands.json"
version: "21"
extra-args: "--system-headers"

- name: Fail fast?!
if: steps.linter.outputs.checks-failed > 0
Expand Down