-
Notifications
You must be signed in to change notification settings - Fork 72
115 lines (101 loc) · 3.16 KB
/
build.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Copyright 2020, 2023, Oracle Corporation and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# http://oss.oracle.com/licenses/upl.
# ---------------------------------------------------------------------------
# Coherence CE GitHub Actions CI build.
# ---------------------------------------------------------------------------
name: CI Build
on:
workflow_dispatch:
push:
branches-ignore:
- gh-pages
- p4-integ*
- last-p4-*
pull_request:
types:
- opened
- committed
branches:
- '*'
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
stage:
- stage1
- stage2
- stage3
- stage4
- stage5
- stage6
- stage7
- stage8
- stage9
- stage10
- stage11
- stage12
- stage13
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK
uses: oracle-actions/setup-java@v1
with:
website: oracle.com
release: 21
- name: Print Maven & Java version
run: mvn -version
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
# Run the Verify stages in parallel
- name: Verify
timeout-minutes: 180
shell: bash
env:
MAVEN_USER: ${{ secrets.MavenUser }}
MAVEN_PASSWORD: ${{ secrets.MavenPassword }}
run: |
echo "Building and running tests in ${{ matrix.stage }}"
export DEV_ROOT=$(pwd)
export SETTINGS_XML=${DEV_ROOT}/.github/maven/settings.xml
mvn --file prj/pom.xml --batch-mode -U -e -s ${SETTINGS_XML} -P-modules,${{ matrix.stage }} -Doptional -Dcoherence.SkipLargeMemoryTests=true clean install
mvn --file prj/pom.xml --batch-mode -e -s ${SETTINGS_XML} -Pmodules,-coherence,${{ matrix.stage }} -nsu -Doptional -Dcoherence.SkipLargeMemoryTests=true -Dcoherence.compatability.settings=${SETTINGS_XML} clean install
# Upload build artifacts for diagnosing failures
- name: Build Artifacts test logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-output-${{ matrix.stage }}
path: prj/**/target/test-output/**/*
if-no-files-found: ignore
- name: Build Artifacts test reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: failsafe-surefire-test-reports-${{ matrix.stage }}
path: prj/**/target/*-reports/**/*
if-no-files-found: ignore
- name: Build Artifacts core dumps
uses: actions/upload-artifact@v3
if: failure()
with:
name: core-dumps-${{ matrix.stage }}
path: prj/**/core.*
if-no-files-found: ignore
- name: Build Artifacts compiler replays
uses: actions/upload-artifact@v3
if: failure()
with:
name: compiler-replay-logs-${{ matrix.stage }}
path: prj/**/replay_pid*.log
if-no-files-found: ignore