-
Notifications
You must be signed in to change notification settings - Fork 245
92 lines (76 loc) · 2.83 KB
/
Copy pathruntime-compatibility.yml
File metadata and controls
92 lines (76 loc) · 2.83 KB
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
# Exercises representative consumer entry points on every supported JVM. It runs nightly to catch
# ecosystem drift and is reusable so automated and manual publications are gated by the same matrix.
name: Runtime compatibility
on:
workflow_call:
inputs:
ref:
description: Git ref to test; defaults to the triggering commit
required: false
type: string
default: ''
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: runtime-compatibility-${{ github.ref }}
cancel-in-progress: false
jobs:
version_support_matrix:
name: Runtime compatibility / version support matrix
runs-on: ${{ vars.SDK_GHA_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 5
outputs:
runtime-matrix: ${{ steps.matrix.outputs.runtime-matrix }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
ref: ${{ inputs.ref || github.sha }}
- name: Set up Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
- name: Read version support policy
id: matrix
run: |
./scripts/gradle generateVersionSupportMatrix -PversionSupportMatrix=full
echo "runtime-matrix=$(< build/version-support-matrix.json)" >> "$GITHUB_OUTPUT"
runtime_compatibility:
name: Runtime compatibility / Java ${{ matrix.java }}
needs: version_support_matrix
runs-on: ${{ vars.SDK_GHA_RUNNER || 'ubuntu-24.04' }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
java: ${{ fromJSON(needs.version_support_matrix.outputs.runtime-matrix) }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
ref: ${{ inputs.ref || github.sha }}
- name: Set up consumer Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Set up build Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
with:
distribution: temurin
java-version: 21
- name: Set up Gradle
uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
- name: Run consumer compatibility smoke test
env:
RUNTIME_JAVA_VERSION: ${{ matrix.java }}
run: >-
./scripts/gradle
:openai-java-runtime-compatibility:runRuntimeCompatibility
-PruntimeJavaVersion="$RUNTIME_JAVA_VERSION"