-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.89 KB
/
bazel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Bazel
on: [pull_request, push]
jobs:
build-native:
strategy:
fail-fast: false
matrix:
include:
- { os: windows-latest, architecture: x64, config: "" }
- { os: windows-latest, architecture: x64, config: "--enable_bzlmod" }
- { os: macos-latest, architecture: x64, config: "" }
- { os: macos-latest, architecture: x64, config: "--enable_bzlmod" }
- { os: ubuntu-latest, architecture: x64, config: "" }
- { os: ubuntu-latest, architecture: x64, config: "--enable_bzlmod" }
name: "Build - ${{ matrix.os }} ${{ matrix.architecture }} ${{ matrix.config }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: bazelbuild/setup-bazelisk@v2
- name: Build
run: bazel build ... -k ${{ matrix.config }}
shell: bash
build-native-testless:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, architecture: x64, config: "--config=for-roborio" }
- { os: ubuntu-latest, architecture: x64, config: "--config=for-roborio --enable_bzlmod" }
name: "Build - ${{ matrix.os }} ${{ matrix.architecture }} ${{ matrix.config }}"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: bazelbuild/setup-bazelisk@v2
- name: Build
run: bazel build ... --nojava_header_compilation -k ${{ matrix.config }}
shell: bash
repin-maven:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v2
- run: bazel run @unpinned_maven//:pin
- run: git diff HEAD
- uses: actions/upload-artifact@v3
with:
name: Re-pinned maven
path: build_scripts/bazel/deps/maven_install.json