parent
ae1f2b7e1b
commit
d30e326ca1
4 changed files with 0 additions and 117 deletions
@ -1,11 +0,0 @@ |
||||
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14 |
||||
|
||||
build:asan --copt=-fsanitize=address --linkopt=-fsanitize=address |
||||
build:msan --copt=-fsanitize=memory --linkopt=-fsanitize=memory |
||||
build:tsan --copt=-fsanitize=thread --linkopt=-fsanitize=thread |
||||
build:ubsan --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 |
||||
# Workaround for the fact that Bazel links with $CC, not $CXX |
||||
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748 |
||||
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr |
||||
# Workaround for https://bugs.llvm.org/show_bug.cgi?id=16404 |
||||
build:ubsan --linkopt=--rtlib=compiler-rt --linkopt=-lunwind |
@ -1,43 +0,0 @@ |
||||
name: Bazel Tests |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- main |
||||
pull_request: |
||||
branches: |
||||
- main |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
|
||||
ubuntu: |
||||
runs-on: ${{ matrix.os }} |
||||
|
||||
strategy: |
||||
fail-fast: false # Don't cancel all jobs if one fails. |
||||
matrix: |
||||
include: |
||||
- { NAME: "Debug", CC: clang, os: ubuntu-20.04, flags: "-c dbg" } |
||||
- { NAME: "Optmized", CC: clang, os: ubuntu-20.04, flags: "-c opt" } |
||||
- { NAME: "GCC Optimized", CC: gcc, os: ubuntu-20.04, flags: "-c opt" } |
||||
- { NAME: "ASAN", CC: clang, os: ubuntu-20.04, flags: "--config=asan -c dbg" } |
||||
- { NAME: "UBSAN", CC: clang, os: ubuntu-20.04, flags: "--config=ubsan -c dbg", install: "libunwind-dev" } |
||||
- { NAME: "macOS", CC: clang, os: macos-11, flags: "" } |
||||
|
||||
name: Bazel ${{ matrix.NAME }} |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- name: Setup Bazel |
||||
run: | |
||||
echo "BAZEL=bazel" >> $GITHUB_ENV |
||||
echo "USE_BAZEL_VERSION=6.4.0" >> $GITHUB_ENV |
||||
- name: Setup Bazel (macOS) |
||||
if: runner.os == 'macOS' |
||||
run: echo "BAZEL=bazelisk" >> $GITHUB_ENV |
||||
- name: Install dependencies |
||||
run: sudo apt update && sudo apt install -y ${{ matrix.install }} |
||||
if: matrix.install != '' |
||||
- name: Run tests |
||||
run: cd ${{ github.workspace }} && CC=${{ matrix.CC }} ${{ env.BAZEL }} test --test_output=errors ... ${{ matrix.flags }} |
@ -1,61 +0,0 @@ |
||||
name: CMake Tests |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- main |
||||
pull_request: |
||||
branches: |
||||
- main |
||||
workflow_dispatch: |
||||
|
||||
env: |
||||
GOOGLETEST_PINNED_COMMIT: 4c9a3bb62bf3ba1f1010bf96f9c8ed767b363774 |
||||
ABSEIL_PINNED_COMMIT: 273292d1cfc0a94a65082ee350509af1d113344d |
||||
INSTALL_DIR: /tmp/install |
||||
|
||||
jobs: |
||||
install: |
||||
name: CMake |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- name: Install Googletest |
||||
run: | |
||||
git clone --no-checkout https://github.com/google/googletest |
||||
git -C googletest reset --hard $GOOGLETEST_PINNED_COMMIT |
||||
cd googletest && cmake . -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR && make install -j20 |
||||
- name: Install Abseil |
||||
run: | |
||||
git clone --no-checkout https://github.com/abseil/abseil-cpp |
||||
git -C abseil-cpp reset --hard $ABSEIL_PINNED_COMMIT |
||||
cd abseil-cpp && cmake . -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR && make install -j20 |
||||
- name: Configure |
||||
run: cd ${{ github.workspace }} && cmake . -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR |
||||
- name: Build |
||||
run: cd ${{ github.workspace }} && cmake --build . -j20 |
||||
- name: Test |
||||
run: cd ${{ github.workspace }} && ctest |
||||
|
||||
test: |
||||
name: Cmake Install |
||||
runs-on: ubuntu-20.04 |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- name: Install Googletest |
||||
run: | |
||||
git clone --no-checkout https://github.com/google/googletest |
||||
git -C googletest reset --hard $GOOGLETEST_PINNED_COMMIT |
||||
cd googletest && cmake . -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR && make install -j20 |
||||
- name: Download Abseil |
||||
run: | |
||||
git clone --no-checkout https://github.com/abseil/abseil-cpp /tmp/abseil-cpp |
||||
git -C /tmp/abseil-cpp reset --hard $ABSEIL_PINNED_COMMIT |
||||
- name: Configure |
||||
run: cd ${{ github.workspace }} && cmake . -DABSL_ROOT_DIR=/tmp/abseil-cpp -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR |
||||
- name: Build |
||||
run: cd ${{ github.workspace }} && cmake --build . -j20 |
||||
- name: Install |
||||
run: cd ${{ github.workspace }} && make install |
||||
- name: Test |
||||
run: cd ${{ github.workspace }} && ctest |
@ -1,2 +0,0 @@ |
||||
# Ignore the bazel symlinks |
||||
/bazel-* |
Loading…
Reference in new issue