-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SwiftPM GitHub CI support #5
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you prefer to use the latest nightly toolchain or use a fixed nightly version here? |
||
check-latest: true | ||
- name: Install Playdate SDK | ||
id: playdate | ||
uses: pd-rs/[email protected] | ||
with: | ||
version: 2.4.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
- name: Build with SwiftPM for ${{ matrix.TARGET }} | ||
working-directory: Examples/${{ matrix.TARGET }} | ||
run: | | ||
swift build -c release | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xcode version does not matter here on SwiftPM CI as we are using nightly Swift toolchain here.
Xcode 15.3 is not used because the upstream runner does not support it yet.
actions/runner-images#9459