mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 21:35:42 +00:00
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
name: Shardok Build
|
|
|
|
on:
|
|
# Main pushes are covered by shardok_arm64_build.yml which builds the same target
|
|
pull_request:
|
|
paths:
|
|
- 'src/main/cpp/**'
|
|
- 'src/main/protobuf/net/eagle0/shardok/**'
|
|
- 'src/main/protobuf/net/eagle0/common/**'
|
|
- 'src/main/go/net/eagle0/build/**'
|
|
- 'WORKSPACE'
|
|
- 'MODULE.bazel'
|
|
- 'BUILD.bazel'
|
|
- '.bazelrc'
|
|
- 'ci/github_actions/ensure_bazel_installed.sh'
|
|
- 'scripts/build_shardok_ci.sh'
|
|
- '.github/workflows/shardok_build.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [self-hosted, bazel]
|
|
|
|
steps:
|
|
- name: Ensure Git LFS available for checkout
|
|
run: |
|
|
COMMON_PATHS=(/opt/homebrew/bin /usr/local/bin)
|
|
for path in "${COMMON_PATHS[@]}"; do
|
|
if [ -d "$path" ]; then
|
|
echo "$path" >> "$GITHUB_PATH"
|
|
export PATH="$path:$PATH"
|
|
fi
|
|
done
|
|
|
|
if command -v git-lfs >/dev/null 2>&1; then
|
|
git-lfs version
|
|
exit 0
|
|
fi
|
|
|
|
brew install git-lfs
|
|
git-lfs version
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
with:
|
|
persist-credentials: false
|
|
lfs: false
|
|
- name: Ensure Bazel installed
|
|
run: ./ci/github_actions/ensure_bazel_installed.sh
|
|
- name: Build Shardok server
|
|
run: ./scripts/build_shardok_ci.sh
|