mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-21 15:35:35 +00:00
fix: CI fixes for tray build and macOS bundle
- Scope brew tap to default archive to avoid duplicate OS/Arch error - Use pipe delimiter in bundle.sh sed to handle version strings with / - Derive clean snapshot version for non-tag CI builds - Run macOS bundle job in parallel with goreleaser (no dependency) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
ce96181441
commit
47202f9d39
@@ -160,7 +160,6 @@ jobs:
|
||||
|
||||
macos-bundle:
|
||||
name: macOS app bundle (${{ matrix.goarch }})
|
||||
needs: [goreleaser]
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -181,7 +180,12 @@ jobs:
|
||||
cd webui && pnpm install && pnpm run build
|
||||
- name: Get version
|
||||
id: version
|
||||
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||
run: |
|
||||
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
|
||||
echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "version=0.0.0-snapshot-${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
- name: Build binary
|
||||
env:
|
||||
CGO_ENABLED: "1"
|
||||
|
||||
Reference in New Issue
Block a user