File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Sources/App/Core/Dependencies Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 6060 DATABASE_HOST : postgres
6161 DATABASE_PORT : ' 5432'
6262
63+ release-build-linux :
64+ name : Release build
65+ runs-on : ubuntu-latest
66+ container :
67+ image : registry.gitlab.com/finestructure/spi-base:1.1.0
68+ options : --privileged
69+ steps :
70+ - name : GH Runner bug workaround
71+ run : sysctl -w vm.mmap_rnd_bits=28
72+ - name : Checkout code
73+ uses : actions/checkout@v4
74+ with : { 'fetch-depth': 0 }
75+ - name : Build release
76+ run : swift build -c release --static-swift-stdlib -Xlinker -ljemalloc
77+
6378 # test-macos:
6479 # name: Test macOS
6580 # runs-on: macOS-latest
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import Vapor
2222struct HTTPClient {
2323 typealias Response = Vapor . HTTPClient . Response
2424
25- var fetchDocumentation : @Sendable ( _ url: URI ) async throws -> Response = { _ in XCTFail ( " fetchDocumentation " ) ; return . ok }
26- var fetchHTTPStatusCode : @Sendable ( _ url: String ) async throws -> HTTPStatus = { _ in XCTFail ( " fetchHTTPStatusCode " ) ; return . ok }
25+ var fetchDocumentation : @Sendable ( _ url: URI ) async throws -> Response
26+ var fetchHTTPStatusCode : @Sendable ( _ url: String ) async throws -> HTTPStatus
2727}
2828
2929extension HTTPClient : DependencyKey {
You can’t perform that action at this time.
0 commit comments