Skip to content

Commit 930643f

Browse files
committed
Add SwiftPM Github CI support
1 parent f8b4354 commit 930643f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/swiftpm.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: SwiftPM Build CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
swiftpm_macos_test:
11+
name: Build with SwiftPM on macOS
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [macos-13, macos-14]
16+
xcode-version: ["15.2"]
17+
target: ["Life", "SwiftBreak"]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Setup Xcode
22+
uses: maxim-lobanov/setup-xcode@v1
23+
with:
24+
xcode-version: ${{ matrix.xcode-version }}
25+
- uses: SwiftyLab/setup-swift@latest
26+
with:
27+
development: true
28+
swift-version: latest
29+
check-latest: true
30+
- name: Install Playdate SDK
31+
id: playdate
32+
uses: pd-rs/[email protected]
33+
with:
34+
version: 2.4.1
35+
- name: Build with SwiftPM for ${{ matrix.TARGET }}
36+
working-directory: Examples/${{ matrix.TARGET }}
37+
run: |
38+
swift build -c release

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
A technical demonstration of Embedded Swift running on Playdate by Panic
44

5+
| **CI Status** |
6+
|---|
7+
|[![SwiftPM Build](https://github.com/apple/swift-playdate-examples/actions/workflows/swiftpm.yml/badge.svg)](https://github.com/apple/swift-playdate-examples/actions/workflows/swiftpm.yml)|
8+
59
## Why Swift for Playdate
610

711
The [Playdate](https://play.date) is a tiny handheld gaming console developed by [Panic](https://panic.com) featuring a Cortex M7 processor and a 400 by 240 1-bit display. Panic provides an SDK for building Playdate games in both C and Lua and is equipped with a Playdate Simulator.

0 commit comments

Comments
 (0)