44 push :
55 branches :
66 - develop
7- - release
87 pull_request :
98 branches :
109 - develop
11- - release
1210
1311jobs :
14- linux :
15- name : Linux ${{ matrix.linux }} ${{ matrix.configuration }}
16- container :
17- image : swift:5.3-${{ matrix.linux }}
12+ macoswebservices :
13+ name : macOS
14+ runs-on : macos-11
15+ steps :
16+ - uses : actions/checkout@v2
17+ - uses : maxim-lobanov/setup-xcode@v1.1
18+ with :
19+ xcode-version : latest
20+ - name : Check Xcode version
21+ run : xcodebuild -version
22+ - name : Check Swift version
23+ run : swift --version
24+ - name : Build and test
25+ run : swift test
26+ linuxwebservices :
27+ name : Linux ${{ matrix.linux }}
1828 runs-on : ubuntu-latest
29+ container :
30+ image : swift:${{ matrix.linux }}
1931 strategy :
20- fail-fast : false
2132 matrix :
22- linux : [bionic, xenial, focal, amazonlinux2, centos8]
23- configuration : [debug, release, release_testing]
33+ linux : [focal, bionic, amazonlinux2, centos8]
2434 steps :
2535 - uses : actions/checkout@v2
26- - name : Install libsqlite3, lsof and zsh
36+ - name : Install libsqlite3
2737 if : ${{ !(startsWith( matrix.linux, 'centos' ) || startsWith( matrix.linux, 'amazonlinux' )) }}
28- run : apt-get update && apt-get install -y --no-install-recommends libsqlite3-dev lsof zsh
38+ run : apt-get update && apt-get install -y --no-install-recommends libsqlite3-dev
2939 - name : Install libsqlite3
3040 if : startsWith( matrix.linux, 'amazonlinux' )
31- run : yum update -y && yum install -y sqlite-devel lsof zsh
41+ run : yum update -y && yum install -y sqlite-devel
3242 - name : Install libsqlite3
3343 if : startsWith( matrix.linux, 'centos' )
34- run : yum update -y --nobest && yum install -y sqlite-devel lsof zsh
35- - uses : actions/cache@v2
36- with :
37- path : .build
38- key : ${{ runner.os }}-${{matrix.linux}}-spm-${{ hashFiles('Package.resolved') }}
44+ run : yum update -y --nobest && yum install -y sqlite-devel
3945 - name : Check Swift version
4046 run : swift --version
41-
42- - name : Release Build # Ensuring release build runs successfully without -enable-testing flag
43- if : matrix.configuration == 'release'
44- run : swift build -c release
45- - name : Release Build & Test
46- if : matrix.configuration == 'release_testing'
47- run : swift test -c release --enable-test-discovery -Xswiftc -enable-testing -Xswiftc -DRELEASE_TESTING
48- - name : Debug Build & Test
49- if : matrix.configuration == 'debug'
50- run : swift test -c debug --enable-test-discovery
47+ - name : Build and test
48+ run : swift test -Xswiftc -Xfrontend -Xswiftc -sil-verify-none
0 commit comments