Skip to content

Commit b4f461b

Browse files
committed
[feat] build macos artifact with github action
1 parent 8358601 commit b4f461b

File tree

5 files changed

+4155
-1172
lines changed

5 files changed

+4155
-1172
lines changed

.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.2.0

.github/workflows/bazel_cli_build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Bazel CLI Build (macOS)
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- 'doc/**'
7+
- 'example/**'
8+
- '**/*.md'
9+
pull_request:
10+
paths-ignore:
11+
- 'doc/**'
12+
- 'example/**'
13+
- '**/*.md'
14+
workflow_dispatch:
15+
16+
17+
jobs:
18+
build-macos:
19+
runs-on: macos-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: true
25+
- name: Install python3
26+
run: brew install python3
27+
- name: Set up Bazel
28+
uses: bazel-contrib/setup-bazel@0.14.0
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
39+
path: bazel-bin/sparrow-cli.tar.gz

language/arkts/extractor/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ genrule(
5252
5353
cd language/arkts/extractor
5454
55-
$$NPM_PATH i --registry https://registry.antgroup-inc.cn
55+
$$NPM_PATH i
5656
cp -rf $$THIRD_TYPESCIRPT_PATH ./node_modules/
5757
$$NPM_PATH run pkg
5858
mv coref-arkts-src-extractor $$OUT_PATH

0 commit comments

Comments
 (0)