File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
Samples/JavaDependencySampleApp
Sources/SwiftJavaBootstrapJavaTool Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 60
60
- name : Prepare CI Environment
61
61
uses : ./.github/actions/prepare_env
62
62
- name : Swift Build
63
- run : " swift build --build-tests"
63
+ run : " swift build --build-tests --disable-sandbox "
64
64
- name : Swift Test
65
65
run : " swift test"
66
66
Original file line number Diff line number Diff line change 6
6
# TODO: this is a workaround for build plugins getting stuck running the bootstrap plugin
7
7
cd ../../
8
8
swift build --product SwiftJavaBootstrapJavaTool
9
- .build/arm64-apple-macosx/ debug/SwiftJavaBootstrapJavaTool --fetch Sources/JavaKitDependencyResolver/swift-java.config --module-name JavaKitDependencyResolver --output-directory .build/plugins/outputs/swift-java/JavaKitDependencyResolver/destination/SwiftJavaBootstrapJavaPlugin
9
+ .build/debug/SwiftJavaBootstrapJavaTool --fetch Sources/JavaKitDependencyResolver/swift-java.config --module-name JavaKitDependencyResolver --output-directory .build/plugins/outputs/swift-java/JavaKitDependencyResolver/destination/SwiftJavaBootstrapJavaPlugin
10
10
11
11
cd -
12
12
swift run --disable-sandbox
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ final class SwiftJavaBootstrapJavaTool {
35
35
}
36
36
37
37
func run( ) async throws {
38
- print ( " RUN SwiftJavaBootstrapJavaTool: \( CommandLine . arguments) " )
38
+ print ( " [debug][swift-java-bootstrap] RUN SwiftJavaBootstrapJavaTool: \( CommandLine . arguments. joined ( separator : " " ) ) " )
39
39
40
40
var args = CommandLine . arguments
41
41
_ = args. removeFirst ( ) // executable
@@ -48,8 +48,10 @@ final class SwiftJavaBootstrapJavaTool {
48
48
49
49
assert ( args. removeFirst ( ) == " --output-directory " )
50
50
let outputDirectoryPath = args. removeFirst ( )
51
-
52
- let config = try readConfiguration ( configPath: URL ( fileURLWithPath: configPath) )
51
+
52
+ let configPathURL = URL ( fileURLWithPath: configPath)
53
+ print ( " [debug][swift-java-bootstrap] Load config: \( configPathURL. absoluteString) " )
54
+ let config = try readConfiguration ( configPath: configPathURL)
53
55
54
56
// We only support a single dependency right now.
55
57
let localGradleProjectDependencyName = ( config. dependencies ?? [ ] ) . filter {
@@ -65,9 +67,8 @@ final class SwiftJavaBootstrapJavaTool {
65
67
" --rerun-tasks " ,
66
68
// "--debug",
67
69
// "\(localGradleProjectDependencyName):jar",
68
- " \( localGradleProjectDependencyName) : \( printRuntimeClasspathTaskName) " ,
69
- ] ,
70
- workingDirectory: " /Users/ktoso/code/swift-java "
70
+ " \( localGradleProjectDependencyName) : \( printRuntimeClasspathTaskName) "
71
+ ]
71
72
)
72
73
73
74
let outString = String (
You can’t perform that action at this time.
0 commit comments