Skip to content

Commit 3d04ee3

Browse files
rjogradycopybara-github
authored andcommitted
Add github workflow to run bazel build/test for our desired configurations.
PiperOrigin-RevId: 715008034 Change-Id: I2f65f5ec288d63c4e6248fd726d389839d1ad9a0
1 parent 4d544fb commit 3d04ee3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Fleetbench CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest]
15+
config: [fastbuild, opt]
16+
compiler:
17+
- name: gcc
18+
flags: ""
19+
- name: clang
20+
flags: "--config=clang"
21+
22+
runs-on: ${{ matrix.os }}
23+
name: "Build/Test ${{ matrix.os }} ${{ matrix.compiler.name }} ${{ matrix.config }}"
24+
steps:
25+
- name: Setup Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
- uses: actions/checkout@v4
30+
with:
31+
fetch-depth: 0
32+
33+
- name: Build
34+
run: |
35+
bazel build -c ${{ matrix.config }} ${{ matrix.compiler.flags }} --keep_going //...
36+
- name: Test
37+
run: |
38+
bazel test -c ${{ matrix.config }} ${{ matrix.compiler.flags }} --test_output=errors //...
39+

0 commit comments

Comments
 (0)