test #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_* |