-
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.
Merge pull request #1 from SwiftPackageIndex/add-ci
Add CI
- Loading branch information
Showing
3 changed files
with
55 additions
and
4 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,48 @@ | ||
name: CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
macOS: | ||
# https://github.com/actions/runner-images | ||
runs-on: macos-13 | ||
strategy: | ||
matrix: | ||
xcode: ['15.0', '14.3.1'] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "Name" | ||
- name: Get swift version | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version | ||
- name: Test | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test | ||
- name: Build release | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release | ||
|
||
Linux: | ||
# https://github.com/actions/runner-images | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: [ | ||
'swift:5.8', | ||
'swift:5.9' | ||
] | ||
container: | ||
image: ${{ matrix.image }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "Name" | ||
- name: Get swift version | ||
run: swift --version | ||
- name: Test | ||
run: swift test | ||
- name: Build release | ||
run: swift build -c release |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// swift-tools-version: 5.6 | ||
// swift-tools-version: 5.8 | ||
|
||
import PackageDescription | ||
|
||
|
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