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

Update Kotlin/Native targets #2926

Merged
merged 3 commits into from
Feb 9, 2023
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
164 changes: 110 additions & 54 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,34 @@ env:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.jvmargs="-Xmx5g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"

jobs:
ios_watchos:
runs-on: macos-latest
update_api:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: apiDump
uses: gradle/gradle-build-action@v2
with:
arguments: apiDump

- name: "Commit new API files"
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update API files
file_pattern: arrow-libs/**/api/*.api

check:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
Expand All @@ -21,20 +47,20 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: ios and watchos tests
- name: Knit and API check
uses: gradle/gradle-build-action@v2
with:
arguments: iosSimulatorArm64Test iosX64Test watchosSimulatorArm64Test watchosX64Test watchosX86Test --parallel --scan
arguments: knitCheck apiCheck --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-ios_watchos'
name: 'reports-check'
path: '**/build/reports/**'

macos_tvos:
runs-on: macos-latest
jvm:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
Expand All @@ -48,20 +74,36 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: macos and tvos tests
- name: JVM test
uses: gradle/gradle-build-action@v2
with:
arguments: macosArm64Test macosX64Test tvosSimulatorArm64Test tvosX64Test --parallel --scan
arguments: jvmTest --scan

- name: Create code coverage report
if: "! github.event.pull_request.head.repo.fork "
uses: gradle/gradle-build-action@v2
with:
arguments: koverMergedReport

- name: Add coverage report to PR
if: "! github.event.pull_request.head.repo.fork "
id: kover
uses: mi-kas/kover-report@v1
with:
path: build/reports/kover/merged/xml/report.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Kover Report
update-comment: true

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-macos_tvos'
name: 'reports-jvmTest'
path: '**/build/reports/**'

windows:
runs-on: windows-latest
js:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
Expand All @@ -75,20 +117,20 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: mingwX64Test
- name: JS tests
uses: gradle/gradle-build-action@v2
with:
arguments: mingwX64Test --scan
arguments: jsTest --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-windows'
name: 'reports-js'
path: '**/build/reports/**'

check:
runs-on: ubuntu-latest
ios:
runs-on: macos-latest
timeout-minutes: 60

steps:
Expand All @@ -102,20 +144,20 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: check
- name: iOS tests
uses: gradle/gradle-build-action@v2
with:
arguments: knitCheck apiCheck --scan
arguments: iosSimulatorArm64Test iosX64Test --parallel --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-check'
name: 'reports-ios'
path: '**/build/reports/**'

jvmTest:
runs-on: ubuntu-latest
macos:
runs-on: macos-latest
timeout-minutes: 60

steps:
Expand All @@ -129,37 +171,50 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: jvmTest
- name: macOS tests
uses: gradle/gradle-build-action@v2
with:
arguments: jvmTest --scan
arguments: macosX64Test --scan

- name: Create code coverage report
if: "! github.event.pull_request.head.repo.fork "
uses: gradle/gradle-build-action@v2
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
arguments: koverMergedReport
name: 'reports-macos'
path: '**/build/reports/**'

- name: Add coverage report to PR
if: "! github.event.pull_request.head.repo.fork "
id: kover
uses: mi-kas/kover-report@v1
tvos:
runs-on: macos-latest
timeout-minutes: 60
continue-on-error: true

steps:
- uses: actions/checkout@v3
with:
path: build/reports/kover/merged/xml/report.xml
token: ${{ secrets.GITHUB_TOKEN }}
title: Kover Report
update-comment: true
fetch-depth: 0

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: tvOS tests
uses: gradle/gradle-build-action@v2
with:
arguments: tvosSimulatorArm64Test tvosX64Test --parallel --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-jvmTest'
name: 'reports-tvos'
path: '**/build/reports/**'

js:
runs-on: ubuntu-latest
watchos:
runs-on: macos-latest
timeout-minutes: 60
continue-on-error: true

steps:
- uses: actions/checkout@v3
Expand All @@ -172,20 +227,20 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: jsTest
- name: watchOS tests
uses: gradle/gradle-build-action@v2
with:
arguments: jsTest --scan
arguments: watchosSimulatorArm64Test watchosX64Test --parallel --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-js'
name: 'reports-watchos'
path: '**/build/reports/**'

linux:
runs-on: ubuntu-latest
windows:
runs-on: windows-latest
timeout-minutes: 60

steps:
Expand All @@ -199,19 +254,19 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: linuxX64Test
- name: Windows (MinGW) tests
uses: gradle/gradle-build-action@v2
with:
arguments: linuxX64Test --scan
arguments: mingwX64Test --scan

- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: 'reports-linux'
name: 'reports-windows'
path: '**/build/reports/**'

update_api:
linux:
runs-on: ubuntu-latest
timeout-minutes: 60

Expand All @@ -226,13 +281,14 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: apiDump
- name: Linux tests
uses: gradle/gradle-build-action@v2
with:
arguments: apiDump
arguments: linuxX64Test --scan

- name: "Commit new API files"
uses: stefanzweifel/git-auto-commit-action@v4
- name: Upload reports
if: failure()
uses: actions/upload-artifact@v3
with:
commit_message: Update API files
file_pattern: arrow-libs/**/api/*.api
name: 'reports-linux'
path: '**/build/reports/**'
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
animalSniffer = "1.6.0"
arrowGradleConfig = "0.11.0-alpha.1"
arrowGradleConfig = "0.12.0-rc.1"
assertj = "3.23.1"
coroutines = "1.6.4"
classgraph = "4.8.151"
Expand Down