-
Notifications
You must be signed in to change notification settings - Fork 229
55 lines (48 loc) · 1.07 KB
/
ci.yaml
File metadata and controls
55 lines (48 loc) · 1.07 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
name: CI - Collector Binaries
on:
merge_group:
push:
branches:
- main
- release/*
pull_request:
branches:
- main
- release/*
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
distro:
- otelcol
- otelcol-contrib
- otelcol-k8s
- otelcol-otlp
- otelcol-ebpf-profiler
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: "~1.25.0"
check-latest: true
- name: Tidy go.mod files
run: go mod tidy
- name: Verify
run: make ci
env:
DISTRIBUTIONS: ${{ matrix.distro }}
build-result:
name: "Build Result"
runs-on: ubuntu-latest
needs: build
steps:
- run: echo "Build for all distros succeeded"