forked from swiftlang/swift-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-validate.sh
More file actions
executable file
·27 lines (22 loc) · 918 Bytes
/
ci-validate.sh
File metadata and controls
executable file
·27 lines (22 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
set -e
set -x
# WORKAROUND: prebuilts broken on Swift 6.2.1 and Linux and tests using macros https://github.com/swiftlang/swift-java/issues/418
if [ "$(uname)" = "Darwin" ]; then
DISABLE_EXPERIMENTAL_PREBUILTS=''
else
DISABLE_EXPERIMENTAL_PREBUILTS='--disable-experimental-prebuilts'
fi
# invoke resolve as part of a build run
swift build \
$DISABLE_EXPERIMENTAL_PREBUILTS \
--disable-sandbox
# explicitly invoke resolve without explicit path or dependency
# the dependencies should be uses from the --swift-module
# FIXME: until prebuilt swift-syntax isn't broken on 6.2 anymore: https://github.com/swiftlang/swift-java/issues/418
swift run \
$DISABLE_EXPERIMENTAL_PREBUILTS \
swift-java resolve \
Sources/JavaCommonsCSV/swift-java.config \
--swift-module JavaCommonsCSV \
--output-directory .build/plugins/outputs/javadependencysampleapp/JavaCommonsCSV/destination/SwiftJavaPlugin/