Skip to content

Commit 7647de7

Browse files
committed
Add support for running Bazel on Linux
1 parent 241bbdc commit 7647de7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
- uses: actions/checkout@master
2020
- uses: jdx/mise-action@v2
2121
- run: mise run lint-ci
22-
bazel:
22+
bazel_macos:
2323
runs-on: macos-15
24-
name: Bazel
24+
name: Bazel (macOS)
2525
steps:
2626
- uses: actions/checkout@master
2727
- uses: jdx/mise-action@v2
@@ -34,7 +34,19 @@ jobs:
3434
run: mise r gen-bazel-rules && git diff --quiet --exit-code
3535
- name: Scan
3636
run: bazel run //:periphery -- scan --bazel --quiet --strict --baseline baselines/bazel.json
37-
macOS:
37+
bazel_linux:
38+
runs-on: ubuntu-latest
39+
name: Bazel (Linux)
40+
steps:
41+
- uses: actions/checkout@master
42+
- uses: bazel-contrib/[email protected]
43+
with:
44+
bazelisk-cache: true
45+
disk-cache: ${{ github.workflow }}
46+
repository-cache: true
47+
- name: Scan
48+
run: CC=clang bazel run --spawn_strategy=standalone //:periphery -- scan --bazel --quiet --strict --baseline baselines/bazel.json
49+
macos:
3850
name: macOS
3951
strategy:
4052
fail-fast: false

0 commit comments

Comments
 (0)