forked from apache/rocketmq
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 760 Bytes
/
bazel.yml
File metadata and controls
31 lines (30 loc) · 760 Bytes
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
name: Build and Run Tests by Bazel
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
- develop
- bazel
jobs:
build:
name: "bazel-compile (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Cache Bazel repository
uses: actions/cache@v4
with:
path: |
~/.cache/bazel
key: bazel-repo-${{ runner.os }}-${{ hashFiles('WORKSPACE') }}
restore-keys: |
bazel-repo-${{ runner.os }}-
- name: Build
run: bazel build --config=remote //...
- name: Run Tests
run: bazel test --config=remote //...