Skip to content

build(deps): bump go.opentelemetry.io/contrib/bridges/otelslog (#168) #9

build(deps): bump go.opentelemetry.io/contrib/bridges/otelslog (#168)

build(deps): bump go.opentelemetry.io/contrib/bridges/otelslog (#168) #9

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
include:
- goos: windows
goarch: amd64
docker_image: x1unix/go-mingw:1.25
binary: ocap_recorder_x64.dll
archive: ocap_recorder-windows-amd64.zip
archiver: zip -r
- goos: linux
goarch: amd64
docker_image: golang:1.25-bookworm
binary: ocap_recorder_x64.so
archive: ocap_recorder-linux-amd64.tar.gz
archiver: tar -czvf
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Build ${{ matrix.goos }}/${{ matrix.goarch }}
run: |
docker run --rm -v "${{ github.workspace }}:/go/work" -w /go/work ${{ matrix.docker_image }} \
go build -buildvcs=false \
-ldflags "-X main.BuildVersion=${{ github.ref_name }} -X main.BuildDate=$(date -u +'%Y-%m-%dT%H:%M:%SZ') -X main.BuildCommit=${{ github.sha }}" \
-o dist/${{ matrix.binary }} -buildmode=c-shared ./cmd/ocap_recorder
- name: Create release archive
run: |
mkdir -p release
cp dist/${{ matrix.binary }} release/
cp ocap_recorder.cfg.json.example release/
cd release && ${{ matrix.archiver }} ../${{ matrix.archive }} .
- name: Upload release asset
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
files: ${{ matrix.archive }}