-
Notifications
You must be signed in to change notification settings - Fork 124
50 lines (47 loc) · 1.6 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test
on:
pull_request:
paths-ignore:
- 'docs/**'
- '*.md'
jobs:
test:
strategy:
matrix:
os: [ macos-latest, macos-14, windows-latest, ubuntu-latest ]
include:
- os: macos-latest
TEST_TASK: macosX64Test
- os: macos-14
TEST_TASK: macosArm64Test
- os: windows-latest
TEST_TASK: mingwX64Test
- os: ubuntu-latest
TEST_TASK: apiCheck check
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- name: Cache Kotlin Native Compiler
uses: actions/cache@v3
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-konan-
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
arguments: ${{matrix.TEST_TASK}} --stacktrace
- 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=true -Dkotlin.incremental=false -Dorg.gradle.project.kotlin.incremental.multiplatform=false -Dorg.gradle.project.kotlin.native.disableCompilerDaemon=true -Dorg.gradle.jvmargs="-Xmx5g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"