Migrate CI to use GitHub Actions.
### Motivation:
To migrate to GitHub actions and centralised infrastructure.
### Modifications:
Changes of note:
* Disable warnings-as-errors until issues with recent NIO changes are
resolved
* Adopt swift-format using rules from SwiftNIO
* Remove scripts which are no longer needed
### Result:
Feature parity with old CI minus allocation tests which remain on the
old CI.
* Update vendoring and perlasm
* Update vendoring script
* Update to BoringSSL 3309ca66385ecb0c37f1ac1be9f88712e25aa8ec
* Handle API break in BoringSSL
* Various vendor script fixes:
- Fix various 'gsed' occurrences with '$sed'
- Remove the delocate patch, it is no longer required
- Add another patch to include inttypes in
CNIOBoringSSL/crypto/x509/t_x509.c where PRIu64 is used and remove it
from CNIOBoringSSL_bn.h. this works around a build failure with
xcodeproj.
- Use the host platform build directory when mangling C++ symbols
- Fix Python bytes/string writing in build-asm.py
* Update BoringSSL to c239ffd0552179f358de31517391679e9b62ccd3
Motivation:
To workaround https://github.com/apple/swift-nio/issues/2073 we must
list all transitive dependencies when building podspecs.
Modifications:
- Copy over `list_transitive_dependencies.py` from the NIO repo.
- Include transitive dependencies in the build_podspec script
- Bump C++ language standard from 11 to 14
- Ignore non-modular header warnings
- Be more precise when specifying 'CNIOBoringSSL*' targets
- Use python3 in build-asm.py (The soundness script includes the
shebang as part of the 'hash' when checking for license headers and
only allows for one shebang per extension so we cannot use both Python
2 and 3 in the same repo.)
Result:
Podspec generation script includes transitive dependencies.
Motivation:
The 32-bit assembly in BoringSSL doesn't assemble correctly on 32-bit
apple platforms. It took us a while to notice because we previously
haven't had any supported 32-bit platforms. NIOSSL still doesn't really
support any 32-bit Apple platforms, as all production use on those
platforms should use NIOTS, but there's no excuse for the compilation
failures really.
Modifications:
Remove assembly acceleration on 32-bit Apple platforms.
Result:
Better compilation on 32-bit Apple platforms.
Motivation:
Requiring the system's SSL library was a constant source of problems.
Modifications:
This is the patch that transitions swift-nio-ssl to use BoringSSL, as discussed in [the Swift forums](https://forums.swift.org/t/rfc-moving-swiftnio-ssl-to-boringssl/18280).
Result:
Easier SSL support