From 47716206a9ab07eff767d426ebd3c131556fb440 Mon Sep 17 00:00:00 2001 From: Finn Voorhees Date: Fri, 5 Apr 2024 17:32:48 +0100 Subject: [PATCH] Add build workflow --- .github/workflows/Build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/Build.yml diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml new file mode 100644 index 00000000..1457966b --- /dev/null +++ b/.github/workflows/Build.yml @@ -0,0 +1,23 @@ +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: 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