22 Commits

Author SHA1 Message Date
Danny Mösch d38f9d4ca3 Use Swift 6.1.2 as Docker base (#6198) 2025-08-21 15:21:30 +02:00
Danny Mösch 32bbc5b6d6 Inline Docker build script (#6196)
With #6193, both Docker variants are built on different machines, so
that not both binaries need to be handled at once.

Since the binaries are not used as release artifacts anymore, dynamic
linking should be fine as well.
2025-08-20 18:06:52 +02:00
Danny Mösch e674b8ecc9 Apply some cleanup 2025-08-16 17:42:39 +02:00
Bradley Mackey ad30ecef67 Build and provide ARM64 Linux binaries (#6015)
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
2025-08-16 17:31:23 +02:00
Bradley Mackey daebaa3115 Include AMD64 Linux binary in artifactbundle (#5866) 2024-11-27 21:30:22 +00:00
Danny Mösch 6d1cb60621 Copy more required dependencies 2024-09-30 14:05:20 +02:00
Danny Mösch 4f2b03b433 Link to internal libraries 2024-09-30 14:04:34 +02:00
Danny Mösch b59e2daad0 Build Docker image with Swift 6 on Ubuntu 24.04 2024-09-29 21:34:49 +02:00
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