-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (82 loc) · 2.37 KB
/
benchmark.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
name: Benchmark
on:
push: {}
workflow_dispatch: {}
jobs:
depot-remote-cache:
name: Depot with Remote Cache
runs-on: depot-ubuntu-24.04
defaults:
run:
working-directory: upstream
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
with:
cache-disabled: true
- uses: MathieuSoysal/[email protected]
with:
file: ~/.gradle/init.gradle
old-string: "if (!settings.buildCache?.remote) {"
new-string: "if (true) {"
- run: ./gradlew --build-cache --continue check
depot-cacheless:
name: Depot Cacheless
runs-on: depot-ubuntu-24.04
defaults:
run:
working-directory: upstream
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
with:
cache-disabled: true
- run: ./gradlew --continue check
github-local-cache:
name: Github with Local Cache
runs-on: ubuntu-24.04
defaults:
run:
working-directory: upstream
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
with:
cache-cleanup: always # We use --continue to force execution of all tasks
- run: ./gradlew --continue check
github-cacheless:
name: Github Cacheless
runs-on: ubuntu-24.04
defaults:
run:
working-directory: upstream
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "21"
- uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
with:
cache-disabled: true
- run: ./gradlew --continue check