Swift 5.6
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: SPM tests
|
- name: SPM tests
|
||||||
run: swift test --enable-code-coverage --sanitize=thread
|
run: swift test --enable-code-coverage
|
||||||
- name: Convert coverage files
|
- name: Convert coverage files
|
||||||
run: |
|
run: |
|
||||||
xcrun llvm-cov export -format "lcov" \
|
xcrun llvm-cov export -format "lcov" \
|
||||||
@@ -38,11 +38,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
- 'swift:5.4-bionic'
|
- 'swift:5.4'
|
||||||
- 'swift:5.5-bionic'
|
- 'swift:5.5'
|
||||||
- 'swift:5.5-focal'
|
- 'swift:5.6'
|
||||||
- 'swift:5.5-amazonlinux2'
|
|
||||||
- 'swift:5.5-centos8'
|
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: ${{ matrix.image }}
|
image: ${{ matrix.image }}
|
||||||
@@ -51,7 +49,7 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
swift test --enable-test-discovery --enable-code-coverage
|
swift test --enable-code-coverage
|
||||||
- name: Convert coverage files
|
- name: Convert coverage files
|
||||||
run: |
|
run: |
|
||||||
llvm-cov export -format="lcov" \
|
llvm-cov export -format="lcov" \
|
||||||
|
|||||||
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@@ -12,12 +12,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: SPM tests
|
- name: SPM tests
|
||||||
run: swift test --sanitize=thread
|
run: swift test
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
image: ['nightly-5.6-bionic', 'nightly-5.6-focal', 'nightly-5.6-centos8', 'nightly-5.6-amazonlinux2']
|
image: ['nightly-bionic', 'nightly-focal', 'nightly-centos8', 'nightly-amazonlinux2']
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: swiftlang/swift:${{ matrix.image }}
|
image: swiftlang/swift:${{ matrix.image }}
|
||||||
|
|||||||
@@ -23,4 +23,4 @@
|
|||||||
--wrapcollections before-first
|
--wrapcollections before-first
|
||||||
|
|
||||||
#file header
|
#file header
|
||||||
#--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the Hummingbird server framework project\n//\n// Copyright (c) {created.year}-{year} the Hummingbird authors\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"
|
# --header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the Hummingbird server framework project\n//\n// Copyright (c) {created.year}-{year} the Hummingbird authors\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"
|
||||||
|
|||||||
@@ -1,13 +0,0 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
|
||||||
//
|
|
||||||
// This source file is part of the Hummingbird server framework project
|
|
||||||
//
|
|
||||||
// Copyright (c) 2021-2021 the Hummingbird authors
|
|
||||||
// Licensed under Apache License v2.0
|
|
||||||
//
|
|
||||||
// See LICENSE.txt for license information
|
|
||||||
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
|
||||||
//
|
|
||||||
//===----------------------------------------------------------------------===//
|
|
||||||
@@ -22,7 +22,7 @@ which swiftformat > /dev/null 2>&1 || (echo "swiftformat not installed. You can
|
|||||||
|
|
||||||
function replace_acceptable_years() {
|
function replace_acceptable_years() {
|
||||||
# this needs to replace all acceptable forms with 'YEARS'
|
# this needs to replace all acceptable forms with 'YEARS'
|
||||||
sed -e 's/20[12][78901]-20[12][8901]/YEARS/' -e 's/20[12][8901]/YEARS/' -e '/^#!/ d'
|
sed -e 's/20[12][0-9]-20[12][0-9]/YEARS/' -e 's/20[12][0-9]/YEARS/' -e '/^#!/ d'
|
||||||
}
|
}
|
||||||
|
|
||||||
printf "=> Checking format... "
|
printf "=> Checking format... "
|
||||||
|
|||||||
Reference in New Issue
Block a user