-
Notifications
You must be signed in to change notification settings - Fork 253
32 lines (27 loc) · 1.04 KB
/
bazel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Bazel
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: deps
# Install Bazel See: https://bazel.build/install/ubuntu
run: |
sudo apt install -y libaio-dev
- name: Build
# Build your program with clang
working-directory: ${{github.workspace}}
# Hacking due to there is a bug in either clang14 or libstdc++13 that the compiler is
# complaining a consteval function is not constant expression.
run: bazel build --action_env=CXX=clang++ --action_env=CC=clang --cxxopt="-Dconsteval=constexpr" ...
- name: Test
# Build and Execute tests
working-directory: ${{github.workspace}}
# Hacking due to there is a bug in either clang14 or libstdc++13 that the compiler is
# complaining a consteval function is not constant expression.
run: bazel test --action_env=CXX=clang++ --action_env=CC=clang --test_output=errors --cxxopt="-Dconsteval=constexpr" ...