Skip to content

Commit

Permalink
[Github Action] Run build on all platforms (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisRev committed Jan 6, 2022
1 parent 2c8b45b commit 35a9644
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 46 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/publish.yml
Expand Up @@ -44,24 +44,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: appleTest
- name: build
uses: gradle/gradle-build-action@v2.1.0
if: matrix.os == 'macos-latest'
with:
arguments: --full-stacktrace appleTest

- name: Ubuntu build
uses: gradle/gradle-build-action@v2.1.0
if: matrix.os == 'ubuntu-latest'
with:
arguments: --full-stacktrace build

- name: mingwX64Test
uses: gradle/gradle-build-action@v2.1.0
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
Expand Up @@ -25,24 +25,11 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: appleTest
- name: build
uses: gradle/gradle-build-action@v2.1.0
if: matrix.os == 'macos-latest'
with:
arguments: --full-stacktrace appleTest

- name: Ubuntu build
uses: gradle/gradle-build-action@v2.1.0
if: matrix.os == 'ubuntu-latest'
with:
arguments: --full-stacktrace build

- name: mingwX64Test
uses: gradle/gradle-build-action@v2.1.0
if: matrix.os == 'windows-latest'
with:
arguments: --full-stacktrace mingwX64Test

- name: Upload reports
uses: actions/upload-artifact@v2.3.1
with:
Expand Down
18 changes: 0 additions & 18 deletions build.gradle.kts
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)
}
}
}
}

0 comments on commit 35a9644

Please sign in to comment.