-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.12 KB
/
test.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
33
34
35
36
name: CI
on: [push]
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Bazel output cache
id: cache-primes
uses: actions/cache@v1
with:
path: "${{ github.workspace }}/.bazel-cache"
key: ${{ runner.os }}-bazel-out-${{ github.run_id}}
restore-keys: |
${{ runner.os }}-bazel-out-
- name: Configure bazel config for actions
run: |
echo "build --config github_actions" > user.bazelrc
echo "build --disk_cache ${{ github.workspace }}/.bazel-cache/disk-cache" >> user.bazelrc
echo "build --repository_cache ${{ github.workspace }}/.bazel-cache/repo-cache" >> user.bazelrc
- name: Ensure bazel on box
run: ./bazel
env:
BAZEL_BIN_LOC: "${{ github.workspace }}/.bazel-cache/bazel-bin"
- name: Run bazel build all
run: ./bazel build //...
env:
BAZEL_BIN_LOC: "${{ github.workspace }}/.bazel-cache/bazel-bin"
# - name: Run bazel test all
# run: |
# ./bazel test //...