File tree Expand file tree Collapse file tree 4 files changed +58
-24
lines changed Expand file tree Collapse file tree 4 files changed +58
-24
lines changed Original file line number Diff line number Diff line change @@ -2,22 +2,43 @@ name: Build and Test
22
33on :
44 push :
5- branches :
6- - develop
7- - main
85 pull_request :
9- branches : [ develop ]
106 schedule :
11- - cron : " 0 9 * * 1"
7+ - cron : " 35 9 * * 1"
128
139jobs :
14- build :
15-
10+ linux :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ image :
16+ - swift:5.2.5-xenial
17+ - swift:5.3.2-xenial
18+ - swift:5.3.2-bionic
19+ - swift:5.5.0-focal
20+ container : ${{ matrix.image }}
21+ steps :
22+ - name : Checkout Repository
23+ uses : actions/checkout@v2
24+ - name : Build Swift Debug Package
25+ run : swift build -c debug
26+ - name : Build Swift Release Package
27+ run : swift build -c release
28+ - name : Run Tests
29+ run : swift test
30+ nextstep :
1631 runs-on : macos-latest
17-
1832 steps :
19- - uses : actions/checkout@v2
20- - name : Build
21- run : swift build -v
22- - name : Run tests
23- run : swift test -v
33+ - name : Select latest available Xcode
34+ uses : maxim-lobanov/setup-xcode@v1.2.1
35+ with :
36+ xcode-version : 13
37+ - name : Checkout Repository
38+ uses : actions/checkout@v2
39+ - name : Build Swift Debug Package
40+ run : swift build -c debug
41+ - name : Build Swift Release Package
42+ run : swift build -c release
43+ - name : Run Tests
44+ run : swift test
Original file line number Diff line number Diff line change 1- // swift-tools-version:5.1
1+ // swift-tools-version:5.2
22
33import PackageDescription
44
@@ -16,15 +16,19 @@ let package = Package(
1616
1717 dependencies: [
1818 . package ( url: " https://github.com/Macro-swift/Macro.git " ,
19- from: " 0.5.7 " ) ,
19+ from: " 0.8.11 " ) ,
2020 . package ( url: " https://github.com/Macro-swift/MacroExpress.git " ,
21- from: " 0.5.7 " )
21+ from: " 0.8.8 " )
2222 ] ,
2323
2424 targets: [
25- . target ( name: " MacroApp " ,
26- dependencies: [ " MacroCore " , " MacroExpress " ] ) ,
27- . testTarget( name: " MacroAppTests " ,
28- dependencies: [ " MacroApp " , " MacroTestUtilities " ] )
25+ . target( name: " MacroApp " , dependencies: [
26+ . product( name: " MacroCore " , package : " Macro " ) ,
27+ " MacroExpress "
28+ ] ) ,
29+ . testTarget( name: " MacroAppTests " , dependencies: [
30+ . product( name: " MacroTestUtilities " , package : " Macro " ) ,
31+ " MacroApp "
32+ ] )
2933 ]
3034)
Original file line number Diff line number Diff line change 22// MacroApp
33//
44// Created by Helge Heß.
5- // Copyright © 2020 ZeeZide GmbH. All rights reserved.
5+ // Copyright © 2020-2021 ZeeZide GmbH. All rights reserved.
66//
77
8+ #if swift(>=5.5.0)
89/**
9- * The function builder to trigger building of `Endpoint` elements.
10- */
11- @_functionBuilder public struct EndpointsBuilder { }
10+ * The function builder to trigger building of `Endpoint` elements.
11+ */
12+ @resultBuilder public struct EndpointsBuilder { }
13+ #else
14+ /**
15+ * The function builder to trigger building of `Endpoint` elements.
16+ */
17+ @_functionBuilder public struct EndpointsBuilder { }
18+ #endif
1219
1320public extension EndpointsBuilder {
1421
Original file line number Diff line number Diff line change @@ -66,5 +66,7 @@ public typealias querystring = QueryStringModule
6666
6767// MARK: - Process stuff
6868
69+ @inlinable
6970public var argv : [ String ] { return process. argv }
71+ @inlinable
7072public var env : [ String : String ] { return process. env }
You can’t perform that action at this time.
0 commit comments