-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f51d00
commit 874c051
Showing
28 changed files
with
45 additions
and
708 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,87 +24,64 @@ jobs: | |
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Keep a disk-cache | ||
disk-cache: true | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
# enable some flags for CI | ||
bazelrc: | | ||
import %workspace%/.github/workflows/ci.bazelrc | ||
# keep a cache for MODULE.bazel repos | ||
external-cache: true | ||
|
||
- run: bazel build //... && bazel test //... | ||
|
||
# TODO: deprecate by Jan 2025 https://bazel.build/release | ||
build-e2e-bazel-5: | ||
e2e-workspace-matrix: | ||
strategy: | ||
matrix: | ||
version: [ | ||
5.x, # TODO: deprecate by Jan 2025 https://bazel.build/release | ||
6.x, | ||
7.x, | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Keep a disk-cache | ||
disk-cache: true | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
bazelrc: import %workspace%/../../.github/workflows/ci.bazelrc | ||
- run: cd e2e/bazel-5 && bazel build //... | ||
|
||
build-e2e-bazel-6-nobzlmod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
bazelrc: import %workspace%/../../.github/workflows/ci.bazelrc | ||
- run: cd e2e/bazel-6 && bazel build //... | ||
|
||
build-e2e-bazel-6-bzlmod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
bazelrc: import %workspace%/../../.github/workflows/ci.bazelrc | ||
- run: cd e2e/bazel-6-bzlmod && bazel build //... | ||
# enable some flags for CI | ||
bazelrc: | | ||
import %workspace%/../../.aspect/workflows/ci.bazelrc | ||
build-e2e-bazel-7-nobzlmod: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
bazelrc: import %workspace%/../../.github/workflows/ci.bazelrc | ||
- run: cd e2e/bazel-7 && bazel build //... | ||
- run: cd e2e/bazel-workspace && USE_BAZEL_VERSION=${{ matrix.version }} bazel build //... | ||
|
||
build-e2e-bazel-7-bzlmod: | ||
e2e-bzlmod-matrix: | ||
strategy: | ||
matrix: | ||
version: [ | ||
6.x, | ||
7.x, | ||
] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: bazel-contrib/[email protected] | ||
with: | ||
# Avoid downloading Bazel every time. | ||
bazelisk-cache: true | ||
# Store build cache per workflow. | ||
disk-cache: ${{ github.workflow }} | ||
# Keep a disk-cache | ||
disk-cache: true | ||
# Share repository cache between workflows. | ||
repository-cache: true | ||
bazelrc: import %workspace%/../../.github/workflows/ci.bazelrc | ||
- run: cd e2e/bazel-7-bzlmod && bazel build //... | ||
# enable some flags for CI | ||
bazelrc: | | ||
import %workspace%/../../.aspect/workflows/ci.bazelrc | ||
# keep a cache for MODULE.bazel repos | ||
external-cache: true | ||
- run: cd e2e/bazel-bzlmod && USE_BAZEL_VERSION=${{ matrix.version }} bazel build //... |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.