-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (27 loc) · 904 Bytes
/
ci.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
name: Bazel Build and Test
on: [push, pull_request]
jobs:
build:
name: Bazel Build and Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Linters
shell: bash
run: tools/trunk check
- name: Build Linux X86 64 binary
shell: bash
run: |
tools/bazel build --platforms=@io_bazel_rules_go//go/toolchain:linux_amd64 //bazel_disk_cache_cleaner
- name: Build Darwin arm 64 binary
shell: bash
run: |
tools/bazel build --platforms=@io_bazel_rules_go//go/toolchain:darwin_arm64 //bazel_disk_cache_cleaner
- name: Build Darwin X86 64 binary
shell: bash
run: |
tools/bazel build --platforms=@io_bazel_rules_go//go/toolchain:darwin_amd64 //bazel_disk_cache_cleaner