-
Notifications
You must be signed in to change notification settings - Fork 48
49 lines (48 loc) · 1.39 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
macos:
strategy:
fail-fast: false
matrix:
xcode: [latest, latest-stable]
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.1
with: { 'xcode-version': '${{ matrix.xcode }}' }
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread
linux:
strategy:
fail-fast: false
matrix:
swiftver:
- swift:5.2
- swift:5.3
swiftos:
- xenial
- bionic
- focal
- centos7
- centos8
- amazonlinux2
container: ${{ format('{0}-{1}', matrix.swiftver, matrix.swiftos) }}
runs-on: ubuntu-latest
steps:
- name: SPM is incompatible with CentOS 7
if: ${{ matrix.swiftos == 'centos7' }}
run: |
yum install -y make libcurl-devel
git clone https://github.com/git/git -bv2.28.0 --depth 1 && cd git
make prefix=/usr -j all install NO_OPENSSL=1 NO_EXPAT=1 NO_TCLTK=1 NO_GETTEXT=1 NO_PERL=1
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread