Skip to content

Commit d5d30a8

Browse files
committed
add mac build
1 parent 8358601 commit d5d30a8

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/bazel_cli_build.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Bazel CLI Build (macOS)
2+
3+
on:
4+
push:
5+
paths:
6+
- 'cli/**'
7+
- '.github/workflows/bazel_cli_build.yml'
8+
pull_request:
9+
branches: [ main ]
10+
paths:
11+
- 'cli/**'
12+
- '.github/workflows/bazel_cli_build.yml'
13+
workflow_dispatch:
14+
15+
jobs:
16+
build-macos:
17+
runs-on: macos-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
submodules: true
23+
- name: Set up Bazel
24+
uses: bazel-contrib/[email protected]
25+
with:
26+
bazelisk-cache: true
27+
disk-cache: ${{ github.workflow }}
28+
repository-cache: true
29+
- name: Build CLI with Bazel
30+
run: bazel build //cli/...

0 commit comments

Comments
 (0)