-
Notifications
You must be signed in to change notification settings - Fork 13
92 lines (89 loc) · 3.31 KB
/
run-experiments-kotlin.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
86
87
88
89
90
91
92
name: Kotlin
on:
schedule:
# Every Sunday at 9.00am
- cron: "0 9 * * 0"
workflow_dispatch:
env:
DEVELOCITY_URL: "https://ge.solutions-team.gradle.com"
GIT_REPO: "https://github.com/JetBrains/kotlin"
TASKS: "install"
ARGS: "-Pkotlin.test.maxParallelForks=4 -Dorg.gradle.dependency.verification=off"
jobs:
Experiment:
strategy:
fail-fast: false
matrix:
include:
- experimentId: 1
- experimentId: 2
- experimentId: 3
runs-on: ubuntu-latest
steps:
- name: Set up JDK 6
uses: actions/setup-java@v4
with:
java-version: 6
distribution: "zulu"
- name: Set up JDK 7
uses: actions/setup-java@v4
with:
java-version: 7
distribution: "zulu"
- name: Set up JDK 9
uses: actions/setup-java@v4
with:
java-version: 9
distribution: "zulu"
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: "temurin"
- name: Display toolchain
run: |
touch settings.gradle
gradle -q javaToolchains ${{ env.ARGS }}
shell: bash
- name: Add git hook to temporarily disable caching for kotlin-dom-api-compat:compileKotlinJs (KT-56690)
run: |
mkdir ~/git-hooks
echo -e 'echo "\ntasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile>().configureEach { outputs.doNotCacheIf(\"https://youtrack.jetbrains.com/issue/KT-56690\") { true } }" >> libraries/kotlin-dom-api-compat/build.gradle.kts\n' > ~/git-hooks/post-checkout
chmod +x ~/git-hooks/post-checkout
git config --global core.hooksPath ~/git-hooks
- name: Download latest version of the validation scripts
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/download@actions-stable
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run experiment 1
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-1@actions-stable
env:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
args: ${{ env.ARGS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
if: matrix.experimentId == 1
- name: Run experiment 2
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-2@actions-stable
env:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
args: ${{ env.ARGS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
failIfNotFullyCacheable: true
if: matrix.experimentId == 2
- name: Run experiment 3
uses: gradle/gradle-enterprise-build-validation-scripts/.github/actions/gradle/experiment-3@actions-stable
env:
DEVELOCITY_ACCESS_KEY: "${{ secrets.DV_SOLUTIONS_ACCESS_KEY }}"
with:
gitRepo: ${{ env.GIT_REPO }}
tasks: ${{ env.TASKS }}
args: ${{ env.ARGS }}
develocityUrl: ${{ env.DEVELOCITY_URL }}
failIfNotFullyCacheable: true
if: matrix.experimentId == 3