Skip to content

add .clang-format

add .clang-format #74

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
gcc12-basic-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-basic-asan-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-basic-asan-
bazel-disk-
- run: bazel test --config ci --action_env=CC=gcc-12 --config asan ...
gcc12-basic-tsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-basic-tsan-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-basic-tsan-
bazel-disk-
- run: bazel test --config ci --action_env=CC=gcc-12 --config tsan ...
gcc12-arenastring-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-arenastring-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-arenastring-
bazel-disk-
- run: bazel test --config ci --action_env=CC=gcc-12 --config arenastring --config asan ...
gcc12-mutable-donated-string-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-gcc12-mutable-donated-string-${{github.sha}}
restore-keys: |
bazel-disk-gcc12-mutable-donated-string-
bazel-disk-
- run: bazel test --config ci --action_env=CC=gcc-12 --config mutable-donated-string --config asan ...
clang14-basic-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-basic-asan-${{github.sha}}
restore-keys: |
bazel-disk-clang14-basic-asan-
bazel-disk-
- run: bazel test --config ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config asan ...
clang14-basic-tsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-basic-tsan-${{github.sha}}
restore-keys: |
bazel-disk-clang14-basic-tsan-
bazel-disk-
- run: bazel test --config ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config tsan ...
clang14-arenastring-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-arenastring-${{github.sha}}
restore-keys: |
bazel-disk-clang14-arenastring-
bazel-disk-
- run: bazel test --config ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config arenastring --config asan ...
clang14-mutable-donated-string-asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-clang14-mutable-donated-string-${{github.sha}}
restore-keys: |
bazel-disk-clang14-mutable-donated-string-
bazel-disk-
- run: bazel test --config ci --action_env=CC=clang-14 --cxxopt=-stdlib=libc++ --linkopt=-stdlib=libc++ --config mutable-donated-string --config asan ...
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: bazel-repo
key: bazel-repo-${{hashFiles('WORKSPACE')}}
restore-keys: |
bazel-repo-
- uses: actions/cache@v4
with:
path: bazel-disk
key: bazel-disk-coverage-${{github.sha}}
restore-keys: |
bazel-disk-coverage-
bazel-disk-
- run: bazel coverage --config ci --combined_report=lcov --instrumentation_filter='src/babylon,-src/babylon/reusable/patch' test/...
- uses: coverallsapp/github-action@v2
with:
github-token: ${{github.token}}
file: bazel-out/_coverage/_coverage_report.dat
format: lcov