diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 381ae180a..e54df2021 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,21 @@ jobs: DATABASE_HOST: postgres DATABASE_PORT: '5432' + release-build-linux: + name: Release build + runs-on: ubuntu-latest + container: + image: registry.gitlab.com/finestructure/spi-base:1.1.0 + options: --privileged + steps: + - name: GH Runner bug workaround + run: sysctl -w vm.mmap_rnd_bits=28 + - name: Checkout code + uses: actions/checkout@v4 + with: { 'fetch-depth': 0 } + - name: Build release + run: swift build -c release --static-swift-stdlib -Xlinker -ljemalloc + # test-macos: # name: Test macOS # runs-on: macOS-latest diff --git a/Sources/App/Core/Dependencies/HTTPClient.swift b/Sources/App/Core/Dependencies/HTTPClient.swift index 0a7e06630..822cf7344 100644 --- a/Sources/App/Core/Dependencies/HTTPClient.swift +++ b/Sources/App/Core/Dependencies/HTTPClient.swift @@ -22,8 +22,8 @@ import Vapor struct HTTPClient { typealias Response = Vapor.HTTPClient.Response - var fetchDocumentation: @Sendable (_ url: URI) async throws -> Response = { _ in XCTFail("fetchDocumentation"); return .ok } - var fetchHTTPStatusCode: @Sendable (_ url: String) async throws -> HTTPStatus = { _ in XCTFail("fetchHTTPStatusCode"); return .ok } + var fetchDocumentation: @Sendable (_ url: URI) async throws -> Response + var fetchHTTPStatusCode: @Sendable (_ url: String) async throws -> HTTPStatus } extension HTTPClient: DependencyKey {