-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (55 loc) · 1.83 KB
/
build.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
51
52
53
54
55
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, windows-2019, macos-10.15, macos-11 ]
java: [ 11 ]
gradle: [ 6.9.1 ]
experimental: [ false ]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
steps:
# Increases page file size on Windows, fixing JVM crashes such as "The paging file is too small for this operation
# to complete"
- uses: al-cheb/[email protected]
if: runner.os == 'Windows'
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v2
id: cache-mavenize
with:
path: |
~/.mavenize/eclipse_archive_cache/*.dmg
~/.mavenize/eclipse_archive_cache/*.zip
~/.mavenize/eclipse_archive_cache/*.tar.gz
key: mavenize-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
mavenize-${{ runner.os }}-
- uses: actions/cache@v2
id: cache-gradle
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ matrix.gradle }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: ${{ matrix.gradle }}
arguments: buildAll --parallel --stacktrace "-Dorg.gradle.jvmargs=-Xms4G -Xmx4G -Xss8M"
- id: print-jvm-crash-logs
if: ${{ failure() }}
run: cat hs_err_pid*.log; cat **/hs_err_pid*.log; cat replay_pid*.log; cat **/replay_pid*.log; true
shell: bash