feat: bootstrap static musl build pipeline for iperf3
iperf3 static musl build / build-and-release (push) Failing after 16s
iperf3 static musl build / build-and-release (push) Failing after 16s
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user