fix: avoid actions checkout and clone repo directly
iperf3 static musl build / build-and-release (push) Failing after 3s
iperf3 static musl build / build-and-release (push) Failing after 3s
This commit is contained in:
@@ -19,12 +19,19 @@ jobs:
|
||||
runs-on: alpine-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Bootstrap workspace
|
||||
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
|
||||
id: meta
|
||||
shell: sh
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
run: |
|
||||
version="$(tr -d ' \n\r' < versions/iperf3.version)"
|
||||
artifact="iperf3-${version}-linux-amd64-musl-static"
|
||||
@@ -33,6 +40,7 @@ jobs:
|
||||
|
||||
- name: Build static iperf3
|
||||
shell: sh
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
run: |
|
||||
chmod +x scripts/build_iperf3.sh
|
||||
./scripts/build_iperf3.sh "${{ steps.meta.outputs.version }}" "$PWD/dist"
|
||||
@@ -46,6 +54,7 @@ jobs:
|
||||
REPO_NAME: static-musl-builds
|
||||
VERSION: ${{ steps.meta.outputs.version }}
|
||||
TARGET_SHA: ${{ gitea.sha }}
|
||||
working-directory: ${{ gitea.workspace }}
|
||||
run: |
|
||||
python3 scripts/publish_release.py \
|
||||
"dist/${{ steps.meta.outputs.artifact }}" \
|
||||
|
||||
Reference in New Issue
Block a user