Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,37 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# The macOS server links cgo against Virtualization.framework, so it can't be
# cross-compiled from the Linux release job — it builds on a macOS arm64 runner.
release-darwin:
needs: release
runs-on: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25.4'

- name: Build server and token tool
run: |
make build-darwin
go build -o bin/hypeman-token ./cmd/gen-jwt

- name: Package and upload darwin_arm64 archive
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${GITHUB_REF_NAME#v}"
STAGE="$(mktemp -d)"
cp bin/hypeman "${STAGE}/hypeman-api"
cp bin/hypeman-token "${STAGE}/hypeman-token"
cp config.example.darwin.yaml "${STAGE}/"
ARCHIVE="hypeman_${VERSION}_darwin_arm64.tar.gz"
tar -czf "${ARCHIVE}" -C "${STAGE}" .
gh release upload "${GITHUB_REF_NAME}" "${ARCHIVE}" --clobber
Loading