-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (57 loc) · 1.71 KB
/
bazel.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Bazel build
env:
HOMEBREW_NO_AUTO_UPDATE: 1
# typically used for bazel internal testing: changes outputRoot, sets idletimeout to ~15s
TEST_TMPDIR: /tmp/bazel
# yamllint disable-line rule:truthy
on:
pull_request:
types:
- opened
- reopened
push:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
#-
# name: Date-Based Cache key
# # get a key showing the current week (ISO: yyyyWww) allowing older caches to age-out/autoprune
# id: week
# run: echo "::set-output name=iso::$(date +'bazel-%YW%U')"
#-
# uses: bazel-contrib/[email protected]
# with:
# # Cache bazel downloads via bazelisk
# bazelisk-cache: true
# # Store build cache per week
# disk-cache: ${{ steps.week.outputs.iso }}
# # Share repository cache between workflows.
# repository-cache: true
- uses: actions/[email protected]
# https://github.com/bazelbuild/bazel/issues/11062
-
name: Documentation
run: |
echo 'examples' > .bazelignore # remove '//docs'
bazel run //docs:collate_docs
-
name: Basic Build
run: |
echo 'docs' > .bazelignore
echo 'examples' >> .bazelignore
bazel build //...
-
name: Basic Test
run: bazel test //... --test_output=errors --test_summary=detailed
-
name: Integration Tests (ie Proof Examples)
run: |
echo 'docs' > .bazelignore
bazel test //examples:all_integration_tests --test_output=errors --test_summary=detailed
-
run: bazel shutdown