Skip to content

Commit

Permalink
chore: fixes, additional bazel ci configs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgammon committed Aug 13, 2023
1 parent 61a516e commit 7424164
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
1 change: 0 additions & 1 deletion .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ tasks:
build:
build_targets:
- "..."
test:
test_targets:
- "..."

Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/bazel.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,11 @@ jobs:
with:
folders: |
[
".",
"test"
"."
]
exclude: |
[
{"folder": ".", "bzlmodEnabled": false},
{"bazelversion": "7.0.0-pre.20230724.1", "bzlmodEnabled": true},
{"bazelversion": "7.0.0-pre.20230724.1", "os": "macos-latest"},
{"bazelversion": "7.0.0-pre.20230724.1", "os": "windows-latest"},
{"bazelversion": "6.3.2", "bzlmodEnabled": true},
{"bazelversion": "6.3.2", "os": "macos-latest"},
{"bazelversion": "6.3.2", "os": "windows-latest"},
{"bazelversion": "5.4.0", "bzlmodEnabled": true},
{"bazelversion": "5.4.0", "os": "macos-latest"},
{"bazelversion": "5.4.0", "os": "windows-latest"},
{"bazelversion": "5.4.0", "os": "windows-latest"}
]
4 changes: 4 additions & 0 deletions .github/workflows/check.lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
lint-workflows:
name: "Lint: Workflows"
uses: elide-dev/build-infra/.github/workflows/check.actions-lint.ci.yml@c54d8227f4bd37839a67ab9cb71fb59a0d197aee
permissions:
checks: write
pull-requests: read
id-token: write

## Task: Lint Bazel Central Registry config files
lint-bcr-yaml:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/ci.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file contains Bazel settings to apply on CI only.
# It is referenced with a --bazelrc option in the call to bazel in ci.yaml

# Debug where options came from
build --announce_rc

# Apply CI configurations
build --config=ci

# This directory is configured in GitHub actions to be persisted between runs.
# We do not enable the repository cache to cache downloaded external artifacts
# as these are generally faster to download again than to fetch them from the
# GitHub actions cache.
build --disk_cache=~/.cache/bazel
# Don't rely on test logs being easily accessible from the test runner,
# though it makes the log noisier.
test --test_output=errors
# Allows tests to run bazelisk-in-bazel, since this is the cache folder used
test --test_env=XDG_CACHE_HOME

0 comments on commit 7424164

Please sign in to comment.