Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ricobeck authored Apr 5, 2024
2 parents 8201888 + cff59a7 commit 9673122
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Lint
on:
push:
branches-ignore:
- main

jobs:
Lint:
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: SwiftFormat
run: |
swiftformat --lint . --swiftversion 6.0 --reporter github-actions-log
7 changes: 3 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import PackageDescription
let gccIncludePrefix =
"/usr/local/playdate/gcc-arm-none-eabi-9-2019-q4-major/lib/gcc/arm-none-eabi/9.2.1"

let playdateSDKPath: String
if let path = Context.environment["PLAYDATE_SDK_PATH"] {
playdateSDKPath = path
let playdateSDKPath: String = if let path = Context.environment["PLAYDATE_SDK_PATH"] {
path
} else {
playdateSDKPath = "\(Context.environment["HOME"]!)/Developer/PlaydateSDK/"
"\(Context.environment["HOME"]!)/Developer/PlaydateSDK/"
}

let package = Package(
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ final class Game: PlaydateGame {
}
```

## Contributing
I'm happy to accept contributions on this project, whether it's bug fixes, implementing missing features, or opening an issue. Please try to follow the existing conventions/style in the project. Code should be formatted before merge using `swiftformat . --swiftversion 6.0`, but I can run this before merging if you don't want to install `swiftformat`.

## Acknowledgements

PlaydateKit was inspired by and would not be possible without the excellent work done by [@rauhul](https://github.com/rauhul) on [swift-playdate-examples](https://github.com/apple/swift-playdate-examples). Specifically, PlaydateKit was created due to the note in the swift-playdate-examples repo:
Expand Down

0 comments on commit 9673122

Please sign in to comment.