Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 51f8c80

Browse files
feat: add linux ubuntu build
1 parent 236a901 commit 51f8c80

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

‎.github/workflows/bazel_cli_build.yml‎

Lines changed: 31 additions & 3 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,34 @@ on:
1515

1616

1717
jobs:
18+
build-linux:
19+
runs-on: ubuntu-22.04
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
- name: Install Software
26+
run: |
27+
sudo apt-get update && sudo apt-get install -y python3 nodejs clang-13 libclang-13-dev python3-pip build-essential
28+
sudo python3 -m pip install pip==24.0
29+
sudo ln -sf /usr/bin/python3 /usr/bin/python
30+
sudo ln -sf /usr/bin/clang-13 /usr/bin/clang
31+
sudo ln -sf /usr/bin/clang++-13 /usr/bin/clang++
32+
- name: Set up Bazel
33+
uses: bazel-contrib/setup-bazel@0.14.0
34+
with:
35+
bazelisk-cache: true
36+
disk-cache: ${{ github.workflow }}
37+
repository-cache: true
38+
- name: Build All
39+
run: bazel build //...
40+
- name: Upload sparrow-cli.tar.gz artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: sparrow-cli-linux
44+
path: bazel-bin/sparrow-cli-linux.tar.gz
45+
1846
build-macos:
1947
runs-on: macos-latest
2048
steps:
@@ -35,5 +63,5 @@ jobs:
3563
- name: Upload sparrow-cli.tar.gz artifact
3664
uses: actions/upload-artifact@v4
3765
with:
38-
name: sparrow-cli
39-
path: bazel-bin/sparrow-cli.tar.gz
66+
name: sparrow-cli-macos
67+
path: bazel-bin/sparrow-cli-mac.tar.gz

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /