diff --git a/.github/workflows/swiftpm.yml b/.github/workflows/swiftpm.yml new file mode 100644 index 000000000..6d5b3c20d --- /dev/null +++ b/.github/workflows/swiftpm.yml @@ -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 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d6040d4ae..ea4a18c70 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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'