forked from junit-team/junit5
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (82 loc) · 2.36 KB
/
cross-version.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
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
name: Cross-Version
on:
push:
branches:
- main
- 'releases/**'
pull_request:
branches:
- '*'
env:
JUNIT_DEVELOCITY_TESTDISTRIBUTION_ENABLED: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
jobs:
openjdk:
strategy:
fail-fast: false
matrix:
jdk: [ 22, 23 ]
name: "OpenJDK ${{ matrix.jdk }}"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Test JDK
uses: ./.github/actions/setup-test-jdk
- name: 'Set up JDK ${{ matrix.jdk }}'
uses: oracle-actions/setup-java@v1
with:
website: jdk.java.net
release: ${{ matrix.jdk }}
version: latest
- name: 'Prepare JDK${{ matrix.jdk }} env var'
shell: bash
run: echo "JDK${{ matrix.jdk }}=$JAVA_HOME" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/run-gradle
with:
arguments: |
-PjavaToolchain.version=${{ matrix.jdk }} \
-Dscan.tag.JDK_${{ matrix.jdk }} \
build
- name: Upload Test Distribution trace files
uses: actions/upload-artifact@v4
with:
name: "Test Distribution trace files (OpenJDK ${{ matrix.jdk }})"
path: '**/build/test-results/*/trace.json'
openj9:
strategy:
fail-fast: false
matrix:
jdk: [ 21 ]
name: "OpenJ9 ${{ matrix.jdk }}"
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Set up Test JDK
uses: ./.github/actions/setup-test-jdk
with:
distribution: semeru
- name: 'Set up JDK ${{ matrix.jdk }}'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: ${{ matrix.jdk }}
check-latest: true
- name: 'Prepare JDK${{ matrix.jdk }} env var'
shell: bash
run: echo "JDK${{ matrix.jdk }}=$JAVA_HOME" >> $GITHUB_ENV
- name: Build
uses: ./.github/actions/run-gradle
with:
arguments: |
-PjavaToolchain.version=${{ matrix.jdk }} \
-PjavaToolchain.implementation=j9 \
-Dscan.tag.JDK_${{ matrix.jdk }} \
-Dscan.tag.OpenJ9 \
build