Skip to content

Commit 3a4af05

Browse files
committed
Add support for running Bazel on Linux
1 parent 241bbdc commit 3a4af05

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/test.yml

Lines changed: 16 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,20 @@ 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+
container: swift:latest
40+
name: Bazel (Linux)
41+
steps:
42+
- uses: actions/checkout@master
43+
- uses: bazel-contrib/[email protected]
44+
with:
45+
bazelisk-cache: true
46+
disk-cache: ${{ github.workflow }}
47+
repository-cache: true
48+
- name: Scan
49+
run: CC=clang bazel run --spawn_strategy=standalone //:periphery -- scan --bazel --quiet --strict --baseline baselines/bazel.json
50+
macos:
3851
name: macOS
3952
strategy:
4053
fail-fast: false

0 commit comments

Comments
 (0)