Skip to content

Commit

Permalink
[rbe] Disable GHA caches (#13577)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje authored Feb 13, 2024
1 parent 5bee19e commit b258204
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ on:
required: false
type: string
default: ''
caching:
description: Toggle caching of Bazel
required: false
type: boolean
default: true
cache-key:
description: Bazel disk cache key
required: false
Expand Down Expand Up @@ -86,8 +91,9 @@ jobs:
with:
java-version: ${{ inputs.java-version }}
distribution: 'temurin'
- name: Setup Bazel
uses: p0deje/[email protected]
- name: Setup Bazel with caching
if: inputs.caching
uses: p0deje/[email protected]
with:
bazelisk-cache: true
bazelrc: common --color=yes
Expand All @@ -100,6 +106,11 @@ jobs:
pypi__pip: py/requirements_lock.txt
ruby: ${{ inputs.os == 'windows' && 'false' || 'rb/.ruby-version' }}
repository-cache: true
- name: Setup Bazel without caching
if: inputs.caching == false
uses: p0deje/[email protected]
with:
bazelrc: common --color=yes
- name: Setup Fluxbox and Xvfb
if: inputs.os == 'ubuntu' && inputs.browser != ''
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ci-rbe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: ./.github/workflows/bazel.yml
with:
name: Check format script run
cache-key: rbe
caching: false
ruby-version: jruby-9.4.5.0
run: ./scripts/github-actions/check-format.sh

Expand All @@ -23,8 +23,7 @@ jobs:
if: github.repository_owner == 'seleniumhq'
uses: ./.github/workflows/bazel.yml
with:
# TODO: experiment with turning off caches
name: All RBE tests
cache-key: rbe
caching: false
ruby-version: jruby-9.4.5.0
run: ./scripts/github-actions/ci-build.sh

0 comments on commit b258204

Please sign in to comment.