generated from finos/software-project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 237
46 lines (37 loc) · 1.19 KB
/
build-multi-thread.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
name: Build (Multi thread)
on: [workflow_dispatch]
jobs:
build-large-runner:
runs-on: ubuntu-latest-4-cores
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Cache Maven dependencies
uses: actions/cache@v3
env:
cache-name: cache-mvn-deps
with:
path: ~/.m2/repository
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "11"
- name: Collect Workflow Telemetry
uses: runforesight/workflow-telemetry-action@v1
with:
theme: dark
- name: Build
run: mvn -B -e -T 2 -DskipTests=true install
env:
MAVEN_OPTS: -Xmx12g
- name: Test
run: |
mvn -B -e -T 2 surefire:test -DargLine="-XX:MaxRAMPercentage=40.0" -Dsurefire.reports.directory=${GITHUB_WORKSPACE}/surefire-reports-aggregate
env:
MAVEN_OPTS: -Xmx3g