Move SwiftPM CI jobs to GitHub Actions (#3818)

This commit is contained in:
JP Simard 2022-01-24 17:59:14 -05:00 committed by GitHub
parent db3422b69a
commit 4c3bb24a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 34 deletions

31
.github/workflows/swiftpm.yml vendored Normal file
View File

@ -0,0 +1,31 @@
name: SwiftPM
on:
push:
branches: [master]
pull_request:
branches: ['*']
jobs:
Xcode:
strategy:
matrix:
xcode_version: ['12.5.1', '13.0', '13.2.1']
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
- uses: actions/checkout@v2
- run: swift -version
- run: swift test
Linux:
strategy:
matrix:
tag: ['5.4', '5.5']
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.tag }}
steps:
- uses: actions/checkout@v2
- run: swift test --parallel

View File

@ -2,20 +2,6 @@ trigger:
- master
jobs:
- job: linux
pool:
vmImage: 'Ubuntu 18.04'
strategy:
maxParallel: 10
matrix:
swift54:
containerImage: swift:5.4
# TODO: swift:5.5
container: $[ variables['containerImage'] ]
steps:
- script: swift test --parallel
displayName: swift test
- job: Xcode
pool:
vmImage: 'macOS-11'
@ -44,26 +30,6 @@ jobs:
testResultsFiles: build/reports/**
condition: succeededOrFailed()
- job: SwiftPM
pool:
vmImage: 'macOS-11'
strategy:
maxParallel: 10
matrix:
xcode125:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
xcode13:
DEVELOPER_DIR: /Applications/Xcode_13.0.app
steps:
- script: |
sw_vers
xcodebuild -version
displayName: Version Informations
- script: >
set -o pipefail &&
swift test --parallel
displayName: swift test
- job: CocoaPods
pool:
vmImage: 'macOS-11'