Skip to content

Commit e9c475a

Browse files
Merge pull request #3563 from SwiftPackageIndex/fix-release-build
Fix release build
2 parents 718f496 + 7986e63 commit e9c475a

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ jobs:
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

Sources/App/Core/Dependencies/HTTPClient.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import Vapor
2222
struct 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

2929
extension HTTPClient: DependencyKey {

0 commit comments

Comments
 (0)