Skip to content

Commit 1199003

Browse files
committed
tmp try build
1 parent 236a901 commit 1199003

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

.github/workflows/bazel_cli_build.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bazel CLI Build (macOS)
1+
name: Bazel CLI Build
22

33
on:
44
push:
@@ -15,6 +15,29 @@ on:
1515

1616

1717
jobs:
18+
build-linux:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
- name: Install python3
26+
run: sudo apt-get update && sudo apt-get install -y python3
27+
- name: Set up Bazel
28+
uses: bazel-contrib/[email protected]
29+
with:
30+
bazelisk-cache: true
31+
disk-cache: ${{ github.workflow }}
32+
repository-cache: true
33+
- name: Build All
34+
run: bazel build //...
35+
- name: Upload sparrow-cli.tar.gz artifact
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: sparrow-cli-linux
39+
path: bazel-bin/sparrow-cli.tar.gz
40+
1841
build-macos:
1942
runs-on: macos-latest
2043
steps:
@@ -35,5 +58,5 @@ jobs:
3558
- name: Upload sparrow-cli.tar.gz artifact
3659
uses: actions/upload-artifact@v4
3760
with:
38-
name: sparrow-cli
61+
name: sparrow-cli-macos
3962
path: bazel-bin/sparrow-cli.tar.gz

0 commit comments

Comments
 (0)