Skip to content

Commit

Permalink
Add SwiftPM GitHub CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Ye committed Mar 14, 2024
1 parent f3a5018 commit 2d9f94a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/swiftpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: SwiftPM Build CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
swiftpm_macos_test:
name: Build with SwiftPM on macOS
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
xcode-version: ["15.2"]
target: ["Life", "SwiftBreak"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- uses: SwiftyLab/setup-swift@latest
with:
development: true
swift-version: latest
check-latest: true
- name: Install Playdate SDK
id: playdate
uses: pd-rs/[email protected]
with:
version: 2.4.1
- name: Build with SwiftPM for ${{ matrix.TARGET }}
working-directory: Examples/${{ matrix.TARGET }}
run: |
swift build -c release
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

A technical demonstration of Embedded Swift running on Playdate by Panic

| **CI Status** |
|---|
|[![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)|

## Why Swift for Playdate

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.
Expand Down

0 comments on commit 2d9f94a

Please sign in to comment.