-
Notifications
You must be signed in to change notification settings - Fork 159
46 lines (42 loc) · 1.27 KB
/
otelcol-fips.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
name: "otelcol-fips"
on:
push:
branches:
- otelcol-fips
concurrency:
group: otelcol-fips-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GO_VERSION: "1.21.12"
jobs:
otelcol-fips:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ "ubuntu-22.04", "otel-arm64", "otel-windows" ]
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
if: runner.os != 'Windows'
with:
go-version: ${{ env.GO_VERSION }}
cache-dependency-path: '**/go.sum'
- name: setup microsoft golang with fips
if: ${{ runner.os == 'Windows' }}
run: |
Invoke-WebRequest -Uri https://aka.ms/golang/release/latest/go${{ env.GO_VERSION }}-1.windows-amd64.zip -OutFile golang.zip
Expand-Archive -Path golang.zip -DestinationPath C:\
- run: make otelcol-fips
if: runner.os != 'Windows'
- run: |
$env:PATH = C:\go\bin;${env:PATH}
make otelcol-fips
if: runner.os == 'Windows'
- uses: actions/upload-artifact@v4
if: always()
with:
name: otelcol-fips-${{ runner.os }}-${{ runner.arch }}
path: ./bin/otelcol_*