Skip to content

Commit

Permalink
Merge pull request #1021 from jarondl/bzl732
Browse files Browse the repository at this point in the history
Add Bazel 7.3.2 which is the current LTS.
  • Loading branch information
haroonc authored Oct 20, 2024
2 parents f6bc8e3 + 426969e commit 88de366
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bazel/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ steps:
- '--tag=gcr.io/$PROJECT_ID/bazel:7.0.1'
- '.'

- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--build-arg=BAZEL_VERSION=7.3.2'
- '--tag=gcr.io/$PROJECT_ID/bazel:7.3.2'
- '.'


# Print for each version
- name: 'gcr.io/$PROJECT_ID/bazel:latest'
Expand All @@ -36,6 +43,8 @@ steps:
args: ['version']
- name: 'gcr.io/$PROJECT_ID/bazel:7.0.1'
args: ['version']
- name: 'gcr.io/$PROJECT_ID/bazel:7.3.2'
args: ['version']

# Build the example with :latest
- name: 'gcr.io/$PROJECT_ID/bazel:latest'
Expand Down Expand Up @@ -79,12 +88,27 @@ steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['run', 'bazel:target']

# Build the example with :7.3.2
- name: 'gcr.io/$PROJECT_ID/bazel:7.3.2'
args: ['run', '--spawn_strategy=standalone', '//:target', '--verbose_failures']
dir: 'examples'
- name: 'gcr.io/$PROJECT_ID/bazel:7.3.2'
args: ['run', '--spawn_strategy=standalone', '//:checkargs', '--verbose_failures', '--', 'a', 'b', 'c']
dir: 'examples'
- name: 'gcr.io/$PROJECT_ID/bazel:7.3.2'
entrypoint: '/bin/bash'
args: ['invocation_id_test.sh']
# Run the example (it was built as bazel:target).
- name: 'gcr.io/cloud-builders/docker'
args: ['run', 'bazel:target']

# TODO(mattmoor): Test docker_push as well.

images:
- 'gcr.io/$PROJECT_ID/bazel:latest'
- 'gcr.io/$PROJECT_ID/bazel:5.4.0'
- 'gcr.io/$PROJECT_ID/bazel:6.4.0'
- 'gcr.io/$PROJECT_ID/bazel:7.0.1'
- 'gcr.io/$PROJECT_ID/bazel:7.3.2'

timeout: 2400s

0 comments on commit 88de366

Please sign in to comment.