Skip to content

Impl 'devices list' subcommand, improve --device error messages (+tips) #74

Impl 'devices list' subcommand, improve --device error messages (+tips)

Impl 'devices list' subcommand, improve --device error messages (+tips) #74

Workflow file for this run

name: Build macOS
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: macos-latest
steps:
- name: List Xcode versions
run: ls /Applications | grep Xcode
- name: Swift version
run: swift --version
- name: Checkout
uses: actions/checkout@v4
# We build separately for arm64 and x86_64 instead of building a universal binary
# directly because of swiftlang/swift-package-manager#8013. I've tried both Xcode
# 15.0.1 (Swift 5.9) and Xcode 16.2 (Swift 6.0.3), both had the same issue.
- name: Build for arm64
run: |
swift build -c release --arch arm64 && \
cp .build/release/swift-bundler swift-bundler-arm64
- name: Build for x86_64
run: |
swift build -c release --arch x86_64 && \
cp .build/release/swift-bundler swift-bundler-x86_64
- name: Combine into universal binary
run: lipo -create -output swift-bundler swift-bundler-x86_64 swift-bundler-arm64
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: swift-bundler
path: ./swift-bundler