From 9c9bb3a4e04e90f7ed95a726ded2352370222547 Mon Sep 17 00:00:00 2001 From: Lord of Scripts Date: Sat, 31 Aug 2024 11:55:45 -0500 Subject: [PATCH] GH-3 sequential build cmd/* instead --- .github/workflows/crossbuild.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/crossbuild.yml b/.github/workflows/crossbuild.yml index 5111124..e80ba20 100644 --- a/.github/workflows/crossbuild.yml +++ b/.github/workflows/crossbuild.yml @@ -14,6 +14,10 @@ on: tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + # Allows running this workflow manually from the Actions tab + workflow_dispatch: + + permissions: contents: write @@ -28,6 +32,7 @@ jobs: build: runs-on: ubuntu-latest strategy: + max-parallel: 1 matrix: goosarch: - 'linux/386' @@ -41,8 +46,10 @@ jobs: - uses: actions/setup-go@v5 with: go-version: '1.22.1' + - name: Set environment variable run: echo "MY_APPTAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - name: Get OS and arch info run: | GOOSARCH=${{matrix.goosarch}} @@ -53,12 +60,15 @@ jobs: echo "BINARY_NAME=$BINARY_NAME" >> $GITHUB_ENV echo "GOOS=$GOOS" >> $GITHUB_ENV echo "GOARCH=$GOARCH" >> $GITHUB_ENV + - name: Build run: | - go build -o "$BINARY_NAME" -v + go build -v -o "$BINARY_NAME" cmd/wiper/*go + - name: Release Notes run: git log $(git describe HEAD~ --tags --abbrev=0)..HEAD --pretty='format:* %h %s%n * %an <%ae>' --no-merges >> ".github/RELEASE-TEMPLATE.md" + - name: Release with Notes uses: softprops/action-gh-release@v2 with: