Skip to content

Commit bc6a1a6

Browse files
committed
Add basic CI action
1 parent 5246e52 commit bc6a1a6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build all targets and run all tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
workflow_dispatch:
10+
11+
jobs:
12+
13+
build_and_test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up JDK
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 11
23+
24+
- name: Mount bazel cache
25+
uses: actions/cache@v2
26+
with:
27+
path: "/home/runner/.cache/bazel"
28+
key: bazel
29+
30+
- name: Build
31+
run: ./bazelisk-linux-amd64 build -c opt //...
32+
33+
- name: Test
34+
run: ./bazelisk-linux-amd64 test -c opt //...

0 commit comments

Comments
 (0)