fix macos build #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bazel CLI Build (macOS) | ||
on: | ||
push: | ||
paths: | ||
- '**' | ||
paths-ignore: | ||
- 'doc/**' | ||
- 'docs/**' | ||
- 'example/**' | ||
- '**/*.md' | ||
pull_request: | ||
paths: | ||
- '**' | ||
paths-ignore: | ||
- 'doc/**' | ||
- 'docs/**' | ||
- '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/setup-bazel@0.14.0 | ||
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 |