File tree Expand file tree Collapse file tree 4 files changed +6
-11
lines changed
Expand file tree Collapse file tree 4 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 3636 - name : Swift version
3737 run : swift --version
3838 - name : Run tests against Apple's AttributeGraph on macOS via SwiftPM
39- env :
40- OPENGRAPH_LIBRARY_EVOLUTION : 0
4139 run : |
4240 swift test \
4341 --build-path .build-compatibility-test-debug
Original file line number Diff line number Diff line change 3535 - name : Swift version
3636 run : swift --version
3737 - name : Build and run tests in debug mode with coverage
38- env :
39- OPENGRAPH_LIBRARY_EVOLUTION : 0
4038 run : |
4139 swift test \
4240 -c debug \
4745 .build-test-debug/debug/OpenGraphPackageTests.xctest/Contents/MacOS/OpenGraphPackageTests \
4846 > coverage.txt
4947 - name : Build and run tests in release mode
50- env :
51- OPENGRAPH_LIBRARY_EVOLUTION : 0
5248 run : |
5349 swift test \
5450 -c release \
Original file line number Diff line number Diff line change @@ -119,8 +119,9 @@ let libraryEvolutionCondition = envEnable("OPENGRAPH_LIBRARY_EVOLUTION")
119119#endif
120120
121121if libraryEvolutionCondition {
122- // NOTE: -enable-library-evolution is not supported on `swift build` yet.
123- sharedSwiftSettings. append ( . unsafeFlags( [ " -enable-library-evolution " ] ) )
122+ // NOTE: -enable-library-evolution will cause module verify failure for `swift build`.
123+ // Either set OPENGRAPH_LIBRARY_EVOLUTION=0 or add `-Xswiftc -no-verify-emitted-module-interface` after `swift build`
124+ sharedSwiftSettings. append ( . unsafeFlags( [ " -enable-library-evolution " , " -no-verify-emitted-module-interface " ] ) )
124125}
125126
126127// MARK: - Targets
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ filepath() {
55 [[ $1 = /* ]] && echo " $1 " || echo " $PWD /${1# ./ } "
66}
77
8- OG_ROOT =" $( dirname $( dirname $( filepath $0 ) ) ) "
8+ OPENGRAPH_ROOT =" $( dirname $( dirname $( filepath $0 ) ) ) "
99
10- cd $OG_ROOT
10+ cd $OPENGRAPH_ROOT
1111
12- swift build -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution
12+ swift build -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution -Xswiftc -no-verify-emitted-module-interface
You can’t perform that action at this time.
0 commit comments