-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As some clients rely on the Bazel build, add a workflow to verify at least one Bazel target (linux-x86). Also, perform some minor cleanup to comments and target branches in our workflow files.
- Loading branch information
1 parent
42bff7a
commit ea2aa2a
Showing
5 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
|
||
permissions: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Build using Bazel | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
bazel-linux-local: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 40 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: scripts/local-bazel-build.sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
BAZEL_ARGS=() | ||
|
||
# Bazel-level configuration | ||
# | ||
# If editing these flags, make sure `local-build.sh` flags are updated. | ||
BAZEL_ARGS+=("-c=\"opt\"") | ||
BAZEL_ARGS+=("-copt=\"fpic\"") | ||
|
||
# User-specified Bazel arguments go last to allow overridding defaults | ||
BAZEL_ARGS+=($@) | ||
|
||
# Build all targets | ||
bazel build :all |
This file contains 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