Skip to content

Add build workflow

Add build workflow #1

Workflow file for this run

name: Build
on: push
jobs:
Build:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Install nightly Swift
run: |
DOWNLOAD=$(curl "https://raw.githubusercontent.com/apple/swift-org-website/main/_data/builds/development/xcode.yml" | yq '.[0].download')
DIR=$(curl "https://raw.githubusercontent.com/apple/swift-org-website/main/_data/builds/development/xcode.yml" | yq '.[0].dir')
curl -L -sS --show-error --fail "https://download.swift.org/development/xcode/$DIR/$DOWNLOAD" -o $DOWNLOAD
sudo installer -store -pkg $DOWNLOAD -target /
- name: Select Xcode
run: sudo xcode-select -s '/Applications/Xcode_15.3.app'
- name: Build
run: $(xcrun -f swift -toolchain "swift latest") build -c release | xcbeautify --renderer github-actions