Skip to content

Commit 46da039

Browse files
committed
[ci] A slightly more involved set up is required for the NPM rules
1 parent 1502130 commit 46da039

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/ci-rbe.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,29 @@ on:
55
workflow_dispatch:
66

77
jobs:
8-
rbe-small-tests:
9-
name: RBE - Small Tests
8+
set-ruby-version:
9+
name: Set Ruby version
1010
uses: ./.github/workflows/bazel.yml
11+
with:
12+
run: echo 'RUBY_VERSION = "jruby-9.4.2.0"' >rb/ruby_version.bzl
13+
14+
# The NPM repository rule wants to write to the HOME directory
15+
# but that's configured for the remote build machines, so run
16+
# that repository rule first so that the subsequent remote
17+
# build runs successfully.
18+
warm-cache:
19+
name: Warm repository rule cache
20+
uses: ./.github/workflows/bazel.yml
21+
needs: set-ruby-version
22+
with:
23+
name: Cache
24+
cache-key: rbe
25+
run: bazel query @npm//:all
26+
27+
rbe-tests:
28+
name: Test
29+
uses: ./.github/workflows/bazel.yml
30+
needs: warm-cache
1131
with:
1232
name: Cache
1333
cache-key: rbe

0 commit comments

Comments
 (0)