Skip to content

[feat] build macos artifact with github action #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5.2.0
39 changes: 39 additions & 0 deletions .github/workflows/bazel_cli_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Bazel CLI Build (macOS)

on:
push:
paths-ignore:
- 'doc/**'
- 'example/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'doc/**'
- 'example/**'
- '**/*.md'
workflow_dispatch:


jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install python3
run: brew install python3
- name: Set up Bazel
uses: bazel-contrib/[email protected]
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build All
run: bazel build //...
- name: Upload sparrow-cli.tar.gz artifact
uses: actions/upload-artifact@v4
with:
name: sparrow-cli
path: bazel-bin/sparrow-cli.tar.gz
2 changes: 1 addition & 1 deletion language/arkts/extractor/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ genrule(

cd language/arkts/extractor

$$NPM_PATH i --registry https://registry.antgroup-inc.cn
$$NPM_PATH i
cp -rf $$THIRD_TYPESCIRPT_PATH ./node_modules/
$$NPM_PATH run pkg
mv coref-arkts-src-extractor $$OUT_PATH
Expand Down
Loading
Loading