Update CI
This commit is contained in:
parent
eb9819021c
commit
835b3967dc
|
|
@ -11,32 +11,36 @@ jobs:
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
xcode:
|
xcode: ["11.6", "12_beta"]
|
||||||
- 11.6
|
|
||||||
- 12_beta
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
- uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Select Xcode ${{ matrix.xcode }}
|
- name: Select Xcode ${{ matrix.xcode }}
|
||||||
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
|
||||||
|
- name: Swift version
|
||||||
|
run: swift --version
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test --skip-update --parallel --enable-test-discovery
|
run: swift test --skip-update --parallel --enable-test-discovery
|
||||||
|
env:
|
||||||
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: swift build -c release
|
run: swift build -c release
|
||||||
|
env:
|
||||||
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
swift: ["5.1", "5.2", "5.3", "latest"]
|
swift: ["5.1", "latest"]
|
||||||
container:
|
container:
|
||||||
image: swift:${{ matrix.swift }}
|
image: swift:${{ matrix.swift }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
- uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Swift version
|
- name: Swift version
|
||||||
run: swift --version
|
run: swift --version
|
||||||
- name: Test
|
- name: Test
|
||||||
run: swift test --skip-update --parallel --enable-test-discovery
|
run: swift test --skip-update --parallel --enable-test-discovery
|
||||||
- name: Build Release
|
- name: Build Release
|
||||||
run: swift build -c release
|
run: swift build -c release
|
||||||
Loading…
Reference in New Issue