Commit Graph

14 Commits

Author SHA1 Message Date
JP Simard f9e7ffa6d9 Fix Docker (#5238)
Swift 5.9 needs more dynamic libraries to be available, which grows the
size of the final Docker image from 423MB to 449MB.
2023-09-26 17:35:04 +00:00
JP Simard fce8283843 Fix & clean up Dockerfile (#4502)
We no longer need `_InternalSwiftSyntaxParser`, but we do need
`libswiftCore.so`.

Fixes https://github.com/realm/SwiftLint/issues/4501

Add a more useful validation test at the end of the Dockerfile.
In addition to running `swiftlint version`, also actually run the linter
which will exercise the SourceKit codepaths.
2022-11-02 10:28:55 -04:00
JP Simard b9653e3e1b Replace swift run with swift build --product (#4357) 2022-10-12 15:51:10 -04:00
JP Simard a8d3813cc7 Fix Dockerfile to account for new test modules (#4306) 2022-10-06 00:36:04 -04:00
JP Simard d3fd234883 Fix Dockerfile to account for SwiftLintTestHelpers (#4305) 2022-10-05 23:53:14 -04:00
JP Simard 2eb764d0c9 Update Dockerfile for plugin support (#4289) 2022-10-05 15:34:55 -04:00
JP Simard 4fb5ebe19b Docker: Update to Swift 5.7 & Ubuntu Jammy (#4241)
And apply workaround for https://github.com/apple/swift/issues/59961 to
all commands.
2022-09-24 15:09:41 -04:00
JP Simard bb309de9df Pin Swift Docker image to 5.6.3-focal (#4240) 2022-09-24 13:56:41 -04:00
JP Simard 702b36a781 Revert strip on Docker 2022-03-18 21:01:50 -04:00
JP Simard e06da98b6b fixup! fixup! Strip binary when building for release 2022-03-18 20:54:07 -04:00
JP Simard 91b58c6cbe Strip binary when building for release
Shaves ~32% off the binary size.

Brings the universal fat binary on macOS from 86MB to 58MB.
2022-03-18 20:43:55 -04:00
Keith Smiley 0830eca24c Add -I to _InternalSwiftSyntaxParser on Linux (#3873)
Since `_InternalSwiftSyntaxParser` isn't in the search paths when building with the `-static-stdlib` flag, we have to manually pass an include path so the swift compiler discovers it. Unfortunately we cannot just pass `-I/usr/lib/swift` because that results in duplicate library errors since the libraries we're linking statically also live there as shared libraries. This first symlinks the module definition to the root of the checkout and uses `.` for the `-I`. Any temporary path could be used instead.
2022-03-08 08:49:24 -08:00
Francisco Javier Trujillo Mata a2ada88fd1 Upload Docker Image in to Github Container (#3791) 2022-01-21 07:38:47 -08:00
Norio Nomura 4e61c8436c [Docker] Add Dockerfile
Provides:
- a runtime environment on ubuntu that does not include the Swift toolchain.
- supportintg `docker build https://github.com/realm/SwiftLint.git`
- add `libcurl4-openssl-dev` as build time dependency that introduced by #3058
2020-12-05 00:22:54 +09:00