Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelnaranjo committed Jul 16, 2024
1 parent 3f51d00 commit 874c051
Show file tree
Hide file tree
Showing 28 changed files with 45 additions and 708 deletions.
91 changes: 34 additions & 57 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 //...
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ 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
bazelrc: import %workspace%/.github/workflows/ci.bazelrc

# enable some flags for CI
bazelrc: |
import %workspace%/.aspect/workflows/ci.bazelrc
# keep a cache for MODULE.bazel repos
external-cache: true

- name: Build Binaries
run: .github/workflows/build_assets.sh
Expand Down
1 change: 0 additions & 1 deletion e2e/bazel-5/.bazelversion

This file was deleted.

1 change: 0 additions & 1 deletion e2e/bazel-6-bzlmod/.bazelversion

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/bazel-6/.bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion e2e/bazel-6/.bazelversion

This file was deleted.

36 changes: 0 additions & 36 deletions e2e/bazel-6/BUILD.bazel

This file was deleted.

35 changes: 0 additions & 35 deletions e2e/bazel-6/WORKSPACE

This file was deleted.

16 changes: 0 additions & 16 deletions e2e/bazel-7-bzlmod/.bazelrc

This file was deleted.

1 change: 0 additions & 1 deletion e2e/bazel-7-bzlmod/.bazelversion

This file was deleted.

36 changes: 0 additions & 36 deletions e2e/bazel-7-bzlmod/BUILD.bazel

This file was deleted.

37 changes: 0 additions & 37 deletions e2e/bazel-7-bzlmod/MODULE.bazel

This file was deleted.

Loading

0 comments on commit 874c051

Please sign in to comment.