Files
static-musl-builds/.gitea/workflows/iperf3.yml
T
Hermes Agent 257889f1e2
iperf3 static musl build / build-and-release (push) Failing after 16s
feat: bootstrap static musl build pipeline for iperf3
2026-05-07 22:12:23 +00:00

56 lines
1.5 KiB
YAML

name: iperf3 static musl build
on:
push:
branches:
- main
paths:
- .gitea/workflows/iperf3.yml
- scripts/**
- versions/iperf3.version
- README.md
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
container:
image: alpine:3.22
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Read version
id: meta
shell: sh
run: |
version="$(tr -d ' \n\r' < versions/iperf3.version)"
artifact="iperf3-${version}-linux-amd64-musl-static"
echo "version=${version}" >> "$GITHUB_OUTPUT"
echo "artifact=${artifact}" >> "$GITHUB_OUTPUT"
- name: Build static iperf3
shell: sh
run: |
chmod +x scripts/build_iperf3.sh
./scripts/build_iperf3.sh "${{ steps.meta.outputs.version }}" "$PWD/dist"
- name: Publish release assets
shell: sh
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_API_URL: ${{ gitea.api_url }}
REPO_OWNER: ${{ gitea.repository_owner }}
REPO_NAME: static-musl-builds
VERSION: ${{ steps.meta.outputs.version }}
TARGET_SHA: ${{ gitea.sha }}
run: |
python3 scripts/publish_release.py \
"dist/${{ steps.meta.outputs.artifact }}" \
"dist/${{ steps.meta.outputs.artifact }}.tar.gz" \
"dist/${{ steps.meta.outputs.artifact }}.sha256"