1
1
name : Build example project
2
2
on : [pull_request, push]
3
+
4
+ concurrency :
5
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
6
+ cancel-in-progress : true
7
+
3
8
jobs :
4
9
build_native :
5
10
strategy :
@@ -20,12 +25,13 @@ jobs:
20
25
runs-on : ${{ matrix.os }}
21
26
steps :
22
27
- uses : actions/checkout@v3
23
- - run : bazel ${{ matrix.bazel_options }} build -k ${{ matrix.config }} --verbose_failures --config=remote //... @bzlmodrio-opencv//...
28
+ - uses : actions/setup-python@v4
29
+ - run : bazel ${{ matrix.bazel_options }} build -k ${{ matrix.config }} --verbose_failures --config=remote //... @bzlmodrio-opencv//... || true
24
30
working-directory : tests
25
31
- run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote
26
32
working-directory : tests
27
33
28
-
34
+
29
35
build_roborio :
30
36
strategy :
31
37
fail-fast : false
35
41
- { name: "windows - roborio", os: windows-latest, command: "build", config: "--config=roborio", bazel_options: "--output_user_root=C:\\bazelroot", }
36
42
- { name: "ubuntu - roborio", os: ubuntu-latest, command: "build", config: "--config=roborio", bazel_options: "", }
37
43
- { name: "macos - roborio", os: macos-latest, command: "build", config: "--config=roborio", bazel_options: "", }
38
-
44
+
39
45
# Build bzlmod, roborio
40
46
# - { name: "windows - bzlmod roborio", os: windows-latest, command: "build", config: "--enable_bzlmod --config=roborio", bazel_options: "--output_user_root=C:\\bazelroot", }
41
47
- { name: "ubuntu - bzlmod roborio", os: ubuntu-latest, command: "build", config: "--enable_bzlmod --config=roborio", bazel_options: "", }
44
50
runs-on : ${{ matrix.os }}
45
51
steps :
46
52
- uses : actions/checkout@v3
53
+ - uses : actions/setup-python@v4
54
+ - name : Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
55
+ run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote || true
56
+ working-directory : tests
47
57
- run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote
48
58
working-directory : tests
49
59
56
66
- { name: "windows - bullseye32", os: windows-latest, command: "build", config: "--config=bullseye32", bazel_options: "--output_user_root=C:\\bazelroot", }
57
67
- { name: "ubuntu - bullseye32", os: ubuntu-latest, command: "build", config: "--config=bullseye32", bazel_options: "", }
58
68
# - { name: "macos - bullseye32", os: macos-latest, command: "build", config: "--config=bullseye32", bazel_options: "", }
59
-
69
+
60
70
# Build bzlmod, bullseye32
61
71
# - { name: "windows - bzlmod bullseye32", os: windows-latest, command: "build", config: "--enable_bzlmod --config=bullseye32", bazel_options: "--output_user_root=C:\\bazelroot", }
62
72
- { name: "ubuntu - bzlmod bullseye32", os: ubuntu-latest, command: "build", config: "--enable_bzlmod --config=bullseye32", bazel_options: "", }
65
75
runs-on : ${{ matrix.os }}
66
76
steps :
67
77
- uses : actions/checkout@v3
78
+ - uses : actions/setup-python@v4
79
+ - name : Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
80
+ run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote || true
81
+ working-directory : tests
68
82
- run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote
69
83
working-directory : tests
70
84
78
92
- { name: "windows - bullseye64", os: windows-latest, command: "build", config: "--config=bullseye64", bazel_options: "--output_user_root=C:\\bazelroot", }
79
93
- { name: "ubuntu - bullseye64", os: ubuntu-latest, command: "build", config: "--config=bullseye64", bazel_options: "", }
80
94
# - { name: "macos - bullseye64", os: macos-latest, command: "build", config: "--config=bullseye32", bazel_options: "", }
81
-
95
+
82
96
# Build bzlmod, bullseye32:
83
97
# - { name: "windows - bzlmod bullseye64", os: windows-latest, command: "build", config: "--enable_bzlmod --config=bullseye64", bazel_options: "--output_user_root=C:\\bazelroot", }
84
98
- { name: "ubuntu - bzlmod bullseye64", os: ubuntu-latest, command: "build", config: "--enable_bzlmod --config=bullseye64", bazel_options: "", }
87
101
runs-on : ${{ matrix.os }}
88
102
steps :
89
103
- uses : actions/checkout@v3
104
+ - uses : actions/setup-python@v4
105
+ - name : Build and allow failure # TODO Sometimes symlinks don't get created correctly the first time around
106
+ run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote || true
107
+ working-directory : tests
90
108
- run : bazel ${{ matrix.bazel_options }} ${{ matrix.command }} //... -k ${{ matrix.config }} --verbose_failures --config=remote
91
- working-directory : tests
109
+ working-directory : tests
0 commit comments