Skip to content

fix: artifact path

fix: artifact path #24

name: Bazel CLI Build
on:
push:
paths-ignore:
- 'doc/**'
- 'example/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'doc/**'
- 'example/**'
- '**/*.md'
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Software
run: |
sudo apt-get update && sudo apt-get install -y python3 nodejs clang-13 libclang-13-dev python3-pip build-essential
sudo python3 -m pip install pip==24.0
sudo ln -sf /usr/bin/python3 /usr/bin/python
sudo ln -sf /usr/bin/clang-13 /usr/bin/clang
sudo ln -sf /usr/bin/clang++-13 /usr/bin/clang++
- 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-linux
path: bazel-bin/sparrow-cli.tar.gz
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-macos
path: bazel-bin/sparrow-cli.tar.gz