Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ jobs:
# Bazel tests
- name: "Run `bazel build`"
run: |
bazel build -c opt "$BAZEL_CONFIG_FLAG" \
read -r -a BAZEL_CONFIGS <<< "$BAZEL_CONFIG_FLAG"
bazel build -c opt "${BAZEL_CONFIGS[@]}" \
--remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY" \
//...

- name: "Run `bazel test`"
run: |
bazel test -c opt "$BAZEL_CONFIG_FLAG" \
read -r -a BAZEL_CONFIGS <<< "$BAZEL_CONFIG_FLAG"
bazel test -c opt "${BAZEL_CONFIGS[@]}" \
--remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY" \
//...

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,19 @@ jobs:
# disk.
- name: "Build markdown files from tblgen sources"
run: |
read -r -a BAZEL_CONFIGS <<< "$BAZEL_CONFIG_FLAG"
bazel query "filter('_filegroup', siblings(kind('gentbl_rule', @heir//...)))" | \
xargs bazel build -c opt "$BAZEL_CONFIG_FLAG" \
xargs bazel build -c opt "${BAZEL_CONFIGS[@]}" \
--remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY" \
"$@"

- name: "Copy markdown files to docs/"
run: |
read -r -a BAZEL_CONFIGS <<< "$BAZEL_CONFIG_FLAG"
python -m pip install --upgrade pip
python -m pip install pyyaml==6.0.2 fire==0.7.0
# heir-opt is needed to generate the doctest examples
bazel build -c opt "$BAZEL_CONFIG_FLAG" \
bazel build -c opt "${BAZEL_CONFIGS[@]}" \
--remote_header=x-buildbuddy-api-key="$BUILDBUDDY_API_KEY" \
//tools:heir-opt
python -m scripts.docs.copy_tblgen_files
Expand Down
Loading