Skip to content

Fix plugin cross-compilation to use glibc (bookworm) instead of musl … #10

Fix plugin cross-compilation to use glibc (bookworm) instead of musl …

Fix plugin cross-compilation to use glibc (bookworm) instead of musl … #10

Workflow file for this run

name: Build and Release
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26.1'
- name: Download dependencies
run: make deps
- name: Run tests
run: make test
- name: Build plugin (Linux AMD64)
run: make build GOOS=linux GOARCH=amd64
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: encoding-format-linux-amd64
path: build/encoding-format.so
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: encoding-format-linux-amd64
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: encoding-format.so
generate_release_notes: true