Skip to content

Commit 80819a8

Browse files
committed
Use p0deje/setup-bazel GitHub Action on CI
It provides cross-platform configuration of Bazel and fine-grained caching for bazelisk, disk_cache, repository_cache and external repositories resulting in faster CI builds.
1 parent fafcc83 commit 80819a8

File tree

11 files changed

+284
-343
lines changed

11 files changed

+284
-343
lines changed

.github/.bazelrc.local

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/.bazelrc.windows.local

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/actions/bazel-test/action.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/actions/bazel/action.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/actions/cache-bazel/action.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/ci-dotnet.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@ jobs:
4040
with:
4141
java-version: 11
4242
distribution: 'temurin'
43-
- name: Cache Bazel artifacts
44-
uses: ./.github/actions/cache-bazel
43+
- name: Setup Bazel
44+
uses: p0deje/setup-bazel@0.1.0
4545
with:
46-
workflow: dotnet
47-
key: ${{ matrix.driver }}-${{ matrix.framework }}
46+
bazelisk-cache: true
47+
disk-cache: dotnet-${{ matrix.driver }}-${{ matrix.framework }}
48+
external-cache: |
49+
crates: rust/Cargo.Bazel.lock
50+
npm: package-lock.json
51+
pypi__pip: py/requirements_lock.txt
52+
rules_ruby_dist: rb/ruby_version.bzl
53+
repository-cache: true
54+
token: ${{ secrets.GITHUB_TOKEN }}
4855
- name: Setup dotnet tests
49-
uses: ./.github/actions/bazel
50-
with:
51-
command: build //dotnet/test/common:chrome
56+
run: bazel build //dotnet/test/common:chrome
5257
- name: Run ${{ matrix.driver }} tests
5358
working-directory: dotnet
5459
run: dotnet test test/common/WebDriver.Common.Tests.csproj --framework ${{ matrix.framework }}

0 commit comments

Comments
 (0)