|
12 | 12 | env:
|
13 | 13 | # server-config-props-it fix
|
14 | 14 | MAVEN_HOME: $(which mvn)
|
| 15 | + # reference build |
| 16 | + REF_DISTRIBUTION: 'semeru' |
| 17 | + REF_JAVA: 8 |
| 18 | + REF_RUNTIME: 'wlp' |
| 19 | + REF_RUNTIME_VERSION: '22.0.0.6' |
15 | 20 |
|
16 | 21 | jobs:
|
17 |
| -# UNIX BUILDS |
| 22 | + # single reference build before starting matrix build |
| 23 | + linux-8-semeru: |
| 24 | + runs-on: ubuntu-latest |
| 25 | + strategy: |
| 26 | + fail-fast: true |
| 27 | + steps: |
| 28 | + # Checkout repos |
| 29 | + - name: Checkout ci.maven |
| 30 | + uses: actions/checkout@v3 |
| 31 | + - name: Setup Java 8 |
| 32 | + uses: actions/setup-java@v3 |
| 33 | + with: |
| 34 | + distribution: ${{ env.REF_DISTRIBUTION }} |
| 35 | + java-version: ${{ env.REF_JAVA }} |
| 36 | + cache: 'maven' |
| 37 | + - name: Checkout ci.common |
| 38 | + uses: actions/checkout@v3 |
| 39 | + with: |
| 40 | + repository: OpenLiberty/ci.common |
| 41 | + path: ci.common |
| 42 | + - name: Checkout ci.ant |
| 43 | + uses: actions/checkout@v3 |
| 44 | + with: |
| 45 | + repository: OpenLiberty/ci.ant |
| 46 | + path: ci.ant |
| 47 | + - name: Cache maven packages |
| 48 | + uses: actions/cache@v3 |
| 49 | + with: |
| 50 | + path: ~/.m2 |
| 51 | + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} |
| 52 | + restore-keys: ${{ runner.os }}-m2 |
| 53 | + # Install dependencies |
| 54 | + - name: Install ci.ant and ci.common |
| 55 | + run: | |
| 56 | + cd ./ci.ant |
| 57 | + mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false |
| 58 | + cd ../ci.common |
| 59 | + mvn clean install --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false |
| 60 | + cd .. |
| 61 | + # Run tests |
| 62 | + - name: Run tests |
| 63 | + run: ./mvnw verify --batch-mode --no-transfer-progress --errors -DtrimStackTrace=false -Ponline-its -D"invoker.streamLogs"=true -Druntime=$REF_RUNTIME -DruntimeVersion="$REF_RUNTIME_VERSION" |
| 64 | + |
| 65 | + # UNIX BUILDS |
18 | 66 | build-unix:
|
| 67 | + needs: linux-8-semeru |
19 | 68 | runs-on: ubuntu-latest
|
20 | 69 | strategy:
|
21 | 70 | fail-fast: false
|
|
24 | 73 | RUNTIME: [ol, wlp]
|
25 | 74 | RUNTIME_VERSION: [22.0.0.6, 22.0.0.9]
|
26 | 75 | java: [17, 11, 8]
|
| 76 | + distribution: [ 'temurin', 'semeru' ] |
27 | 77 | exclude:
|
| 78 | + - java: $REF_JAVA |
| 79 | + distribution: $REF_DISTRIBUTION |
| 80 | + RUNTIME: $REF_RUNTIME |
| 81 | + RUNTIME_VERSION: $REF_RUNTIME_VERSION |
28 | 82 | - java: 8
|
29 | 83 | RUNTIME_VERSION: 22.0.0.6
|
30 | 84 | - java: 17
|
|
37 | 91 | - name: Setup Java ${{ matrix.java }}
|
38 | 92 | uses: actions/setup-java@v3
|
39 | 93 | with:
|
40 |
| - distribution: 'temurin' |
| 94 | + distribution: ${{ matrix.distribution }} |
41 | 95 | java-version: ${{ matrix.java }}
|
42 | 96 | cache: 'maven'
|
43 | 97 | - name: Checkout ci.common
|
|
70 | 124 |
|
71 | 125 | # WINDOWS BUILD
|
72 | 126 | build-windows:
|
| 127 | + needs: linux-8-semeru |
73 | 128 | runs-on: windows-latest
|
74 | 129 | strategy:
|
75 | 130 | fail-fast: false
|
|
78 | 133 | RUNTIME: [ol, wlp]
|
79 | 134 | RUNTIME_VERSION: [22.0.0.6, 22.0.0.9]
|
80 | 135 | java: [17, 11, 8]
|
| 136 | + distribution: ['temurin', 'semeru'] |
81 | 137 | exclude:
|
82 | 138 | - java: 8
|
83 | 139 | RUNTIME_VERSION: 22.0.0.6
|
|
91 | 147 | - name: Setup Java ${{ matrix.java }}
|
92 | 148 | uses: actions/setup-java@v3
|
93 | 149 | with:
|
94 |
| - distribution: 'temurin' |
| 150 | + distribution: ${{ matrix.distribution }} |
95 | 151 | java-version: ${{ matrix.java }}
|
96 | 152 | cache: 'maven'
|
97 | 153 | # Move and cloning to C: drive for Windows for more disk space
|
|
0 commit comments