Skip to content

Build Release Binary #1

Build Release Binary

Build Release Binary #1

name: Build Release Binary
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Release tag to upload the binary to (e.g. 1.4.6)'
required: true
jobs:
build:
name: Build macOS Binary
runs-on: macos-26
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Build Universal Binary
run: |
swift build -c release --arch arm64
swift build -c release --arch x86_64
lipo -create -output Run \
.build/arm64-apple-macosx/release/Run \
.build/x86_64-apple-macosx/release/Run
- name: Upload Binary to Release
run: gh release upload ${{ github.event.release.tag_name || inputs.tag }} Run
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}