-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow for Swift Package Manager (#8)
Added a GitHub workflow to build and run SPM test targets.
- Loading branch information
1 parent
ad9a140
commit 5a28b06
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: spm | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
# Run every day at 11pm (PST) - cron uses UTC times | ||
- cron: '0 7 * * *' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
swift-build-run: | ||
runs-on: macOS-latest | ||
strategy: | ||
matrix: | ||
target: [iOS, tvOS, macOS, catalyst] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
- name: Setup Scripts Directory | ||
run: ./setup-scripts.sh | ||
- name: Initialize xcodebuild | ||
run: xcodebuild -list | ||
- name: iOS Unit Tests | ||
run: scripts/third_party/travis/retry.sh scripts/build.sh AppCheck ${{ matrix.target }} spm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ruby-2.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters