Skip to content

Commit

Permalink
[CALCITE-6390] Exclude Arrow project on Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
zabetak authored and snuyanzin committed Apr 29, 2024
1 parent 3e633f6 commit 1506857
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ jobs:
with:
job-id: jdk${{ matrix.jdk }}
remote-build-cache-proxy-enabled: false
# Arrow build is excluded because it is not supported on Windows
# See https://arrow.apache.org/docs/java/install.html#system-compatibility
arguments: --scan --no-parallel --no-daemon build javadoc --exclude-task :arrow:build
arguments: --scan --no-parallel --no-daemon build javadoc
- name: 'sqlline and sqllsh'
shell: cmd
run: |
Expand Down Expand Up @@ -105,9 +103,7 @@ jobs:
with:
job-id: jdk${{ matrix.jdk }}
remote-build-cache-proxy-enabled: false
# Arrow build is excluded because it is not supported on Windows
# See https://arrow.apache.org/docs/java/install.html#system-compatibility
arguments: --scan --no-parallel --no-daemon build --exclude-task :arrow:build
arguments: --scan --no-parallel --no-daemon build
- name: 'sqlline and sqllsh'
shell: cmd
run: |
Expand Down
6 changes: 6 additions & 0 deletions arrow/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/
import com.github.vlsi.gradle.dsl.configureEach
import org.gradle.internal.os.OperatingSystem

dependencies {
api(project(":core"))
Expand All @@ -36,6 +37,11 @@ dependencies {
plugins.withType<JavaPlugin> {
tasks {
configureEach<Test> {
// Tests disabled on Windows due to failures. Arrow is not tested on Windows:
// https://arrow.apache.org/docs/java/install.html#system-compatibility
enabled = !OperatingSystem.current().isWindows
// The following JVM options are required when using certain JDKs >= 9
// https://arrow.apache.org/docs/java/install.html#java-compatibility
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
jvmArgs("--add-opens=java.base/java.nio=ALL-UNNAMED")
}
Expand Down

0 comments on commit 1506857

Please sign in to comment.