Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Sources/App/Core/Dependencies/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading