fix: avoid actions checkout and clone repo directly
iperf3 static musl build / build-and-release (push) Failing after 3s

This commit is contained in:
Hermes Agent
2026-05-07 23:07:48 +00:00
parent f5c48e56a6
commit 1137a58843
+11 -2
View File
@@ -19,12 +19,19 @@ jobs:
runs-on: alpine-latest runs-on: alpine-latest
steps: steps:
- name: Checkout - name: Bootstrap workspace
uses: actions/checkout@v4 shell: sh
run: |
apk add --no-cache git
rm -rf "$GITHUB_WORKSPACE"
git clone --depth 1 "${{ gitea.server_url }}/${{ gitea.repository }}.git" "$GITHUB_WORKSPACE"
git -C "$GITHUB_WORKSPACE" fetch --depth 1 origin "${{ gitea.sha }}"
git -C "$GITHUB_WORKSPACE" checkout "${{ gitea.sha }}"
- name: Read version - name: Read version
id: meta id: meta
shell: sh shell: sh
working-directory: ${{ gitea.workspace }}
run: | run: |
version="$(tr -d ' \n\r' < versions/iperf3.version)" version="$(tr -d ' \n\r' < versions/iperf3.version)"
artifact="iperf3-${version}-linux-amd64-musl-static" artifact="iperf3-${version}-linux-amd64-musl-static"
@@ -33,6 +40,7 @@ jobs:
- name: Build static iperf3 - name: Build static iperf3
shell: sh shell: sh
working-directory: ${{ gitea.workspace }}
run: | run: |
chmod +x scripts/build_iperf3.sh chmod +x scripts/build_iperf3.sh
./scripts/build_iperf3.sh "${{ steps.meta.outputs.version }}" "$PWD/dist" ./scripts/build_iperf3.sh "${{ steps.meta.outputs.version }}" "$PWD/dist"
@@ -46,6 +54,7 @@ jobs:
REPO_NAME: static-musl-builds REPO_NAME: static-musl-builds
VERSION: ${{ steps.meta.outputs.version }} VERSION: ${{ steps.meta.outputs.version }}
TARGET_SHA: ${{ gitea.sha }} TARGET_SHA: ${{ gitea.sha }}
working-directory: ${{ gitea.workspace }}
run: | run: |
python3 scripts/publish_release.py \ python3 scripts/publish_release.py \
"dist/${{ steps.meta.outputs.artifact }}" \ "dist/${{ steps.meta.outputs.artifact }}" \