Build Release Binary #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |