forked from bazelRio/bazelRio
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 2.24 KB
/
build-example.yaml
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
name: Build example project
on: [pull_request, push]
jobs:
build-matrix:
strategy:
fail-fast: false
matrix:
include:
- { os: windows-latest, bazel_options: "--output_user_root=C:\\bazelroot", native_config: "--config=for-windows" }
- { os: macos-latest, bazel_options: "", native_config: "" }
- { os: ubuntu-latest, bazel_options: "", native_config: "" }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Build Roborio (cpp)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* --config=for-roborio --verbose_failures
working-directory: examples/cpp_example
- name: Build Native (cpp)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* ${{ matrix.native_config }} --verbose_failures
working-directory: examples/cpp_example
- name: Build Roborio (java)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* --config=for-roborio --verbose_failures
working-directory: examples/java_example
- name: Build Native (java)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* ${{ matrix.native_config }} --verbose_failures
working-directory: examples/java_example
- name: Build Roborio (kotlin)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* --config=for-roborio --verbose_failures
working-directory: examples/kotlin_example
- name: Build Native (kotlin)
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build //...:* ${{ matrix.native_config }} --verbose_failures
working-directory: examples/kotlin_example
- name: Build tools
if: ${{ always() }}
run: bazel ${{ matrix.bazel_options }} build @bazelrio//libraries/tools/...
working-directory: examples/java_example