Skip to content

Add Binary Compatability Validator #129

Add Binary Compatability Validator

Add Binary Compatability Validator #129

Workflow file for this run

name: Test
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
include:
- os: macos-latest
NATIVE_TEST_TASK: :mordant:linkDebugTestMacosArm64 :mordant:macosX64Test
- os: windows-latest
NATIVE_TEST_TASK: :mordant:mingwX64Test
- os: ubuntu-latest
NATIVE_TEST_TASK: :mordant:linuxX64Test :test:proguard:r8jar apiCheck
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- name: Cache Kotlin Native Compiler
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-konan-
- uses: graalvm/setup-graalvm@v1
with:
java-version: 17
distribution: 'graalvm-community'
set-java-home: false
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
arguments: |
:mordant:jvmTest
:mordant:jsTest
:test:graalvm:nativeTest
${{matrix.NATIVE_TEST_TASK}}
--stacktrace
- name: Run R8 Jar
run: java -jar test/proguard/build/libs/main-r8.jar
- name: Bundle the build report
if: failure()
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip
- name: Upload the build report
if: failure()
uses: actions/upload-artifact@master
with:
name: error-report
path: build-reports.zip
env:
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.project.kotlin.incremental.multiplatform=false -Dorg.gradle.project.kotlin.native.disableCompilerDaemon=true -Dorg.gradle.jvmargs="-Xmx256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"