-
Notifications
You must be signed in to change notification settings - Fork 357
56 lines (48 loc) · 1.71 KB
/
Copy pathbazel-ci.yml
File metadata and controls
56 lines (48 loc) · 1.71 KB
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
name: Bazel CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Bazel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
include:
- os: macOS-latest
bazel_args: "--cxxopt=-std=c++17 --lockfile_mode=error"
- os: ubuntu-latest
bazel_args: "--cxxopt=-std=c++17 --lockfile_mode=error"
- os: windows-latest
bazel_args: "--cxxopt=/std:c++17 --lockfile_mode=error"
steps:
- name: Checkout source
uses: actions/checkout@v7
- name: Generate German locale on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get remove -y --purge man-db # avoid time-consuming trigger
sudo apt-get update
sudo apt-get install -y locales
sudo locale-gen de_DE.UTF-8 # used by SerializerTest
- name: Install telegraf on macOS
if: runner.os == 'macOS'
run: brew install telegraf
- name: Build with SSL
if: runner.os != 'macOS'
run: bazel build ${{ matrix.bazel_args }} --config=ssl //...
- name: Test with SSL
if: runner.os != 'macOS'
run: bazel test ${{ matrix.bazel_args }} --config=ssl --test_output=all //...
- name: Build
run: bazel build ${{ matrix.bazel_args }} //...
- name: Test
run: bazel test ${{ matrix.bazel_args }} --test_output=all //...
- name: Scraping Test
if: runner.os == 'macOS'
run: bazel test ${{ matrix.bazel_args }} --test_output=all --test_env=TELEGRAF="$(brew --prefix telegraf)/bin/telegraf" //pull/tests/integration:scrape-test