forked from pingcap/tidb
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1.16 KB
/
bazel-build-crossbuild.yml
File metadata and controls
43 lines (43 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Bazel Crossbuild for TiDB/Lightning
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
master:
name: Bazel Crossbuild
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os:
- macos
- ubuntu
steps:
- uses: actions/checkout@v6
- name: Build Prepare
uses: ./.github/actions/tidb_build
with:
bazelrc: ${{ secrets.BAZELRC }}
gcp_sa_key: ${{ secrets.GCP_SA_KEY }}
go-version: 1.25
- name: Run Build
shell: bash
run: |
#!/bin/bash
unset CI
system_name=$(uname -s)
if [ "$system_name" == "Darwin" ]; then
sed -i '' '/bazel-cache/d' DEPS.bzl
sed -i '' '/ats.apps.svc/d' DEPS.bzl
sed -i '' '/bazel-cache/d' WORKSPACE
sed -i '' '/ats.apps.svc/d' WORKSPACE
elif [ "$system_name" == "Linux" ]; then
sed -i '/bazel-cache/d' DEPS.bzl
sed -i '/ats.apps.svc/d' DEPS.bzl
sed -i '/bazel-cache/d' WORKSPACE
sed -i '/ats.apps.svc/d' WORKSPACE
fi
make bazel_bin