Skip to content

Add build workflow

Add build workflow #5

Workflow file for this run

name: Build
on:
push:
pull_request:
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: Install Playdate SDK
run: |
curl -L -sS --show-error --fail "https://download.panic.com/playdate_sdk/PlaydateSDK-latest.zip" -o PlaydateSDK-latest.zip
unzip PlaydateSDK-latest.zip
sudo installer -store -pkg "PlaydateSDK.pkg" -target /
- name: Build
run: set -o pipefail && $(xcrun -f swift -toolchain "swift latest") build -c release | xcbeautify --renderer github-actions