GitHub Actions
Use Macyou servers as self-hosted GitHub Actions runners.
Navigation
GitHub Actions Integration
Use Macyou servers as self-hosted GitHub Actions runners for fast iOS builds and macOS CI/CD.
Setup
# Deploy a server with clean macOS
macyou deploy --chip m4-pro --ram 48 --stack clean-macos --name ci-runner
# SSH in and install the runner
macyou ssh ci-runner
curl -o actions-runner.tar.gz -L \
https://github.com/actions/runner/releases/latest/download/actions-runner-osx-arm64.tar.gz
tar xzf actions-runner.tar.gz
./config.sh --url https://github.com/YOUR_ORG/YOUR_REPO --token YOUR_TOKEN
./svc.sh install && ./svc.sh startWorkflow Example
# .github/workflows/ios-build.yml
name: iOS Build
on: [push]
jobs:
build:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app
- name: Build
run: xcodebuild -scheme MyApp -sdk iphoneos build
- name: Test
run: xcodebuild test -scheme MyApp -destination 'platform=iOS Simulator,name=iPhone 16'