Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Github Action] Run build on all platforms #2626

Merged
merged 2 commits into from
Jan 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: appleTest
- name: build
uses: gradle/[email protected]
if: matrix.os == 'macos-latest'
with:
arguments: --full-stacktrace appleTest

- name: Ubuntu build
uses: gradle/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
arguments: --full-stacktrace build

- name: mingwX64Test
uses: gradle/[email protected]
if: matrix.os == 'windows-latest'
with:
arguments: --full-stacktrace mingwX64Test

- id: get-arrow-version
name: Get Arrow version
run: echo "::set-output name=arrow-version::$(head -n 1 build/semver/version.txt)"
Expand Down
15 changes: 1 addition & 14 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: appleTest
- name: build
uses: gradle/[email protected]
if: matrix.os == 'macos-latest'
with:
arguments: --full-stacktrace appleTest

- name: Ubuntu build
uses: gradle/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
arguments: --full-stacktrace build

- name: mingwX64Test
uses: gradle/[email protected]
if: matrix.os == 'windows-latest'
with:
arguments: --full-stacktrace mingwX64Test

- name: Upload reports
uses: actions/[email protected]
with:
Expand Down
18 changes: 0 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,3 @@ tasks {
apiValidation {
ignoredProjects.addAll(listOf("arrow-optics-ksp-plugin", "arrow-optics-test", "arrow-site"))
}


val appleTest = tasks.create("appleTest")

subprojects {
afterEvaluate {
val appleTargets = setOf("tvos", "watchos", "ios", "macos")

extensions.findByType<org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension>()
?.sourceSets
?.filter { appleTargets.any { target -> it.name.contains(target) } && it.name.contains("Test") }
?.forEach {
tasks.findByName(it.name)?.let { task ->
appleTest.dependsOn(task)
}
}
}
}