30 lines
620 B
YAML
30 lines
620 B
YAML
name: Swift nightly build
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 1 * * 1'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
macOS:
|
|
runs-on: macOS-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: SPM tests
|
|
run: swift test --sanitize=thread
|
|
linux:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
image: ['nightly-bionic', 'nightly-focal', 'nightly-centos8', 'nightly-amazonlinux2']
|
|
|
|
container:
|
|
image: swiftlang/swift:${{ matrix.image }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Test
|
|
run: |
|
|
swift test --enable-test-discovery
|