-
Notifications
You must be signed in to change notification settings - Fork 979
/
runtimes.yml
196 lines (195 loc) · 6.96 KB
/
runtimes.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
version: 0.1
runtimes:
java:
versions:
corretto21:
commands:
- echo "Installing Corretto(OpenJDK) version 21 ..."
- export JAVA_HOME="$JAVA_21_HOME"
- export JRE_HOME="$JRE_21_HOME"
- export JDK_HOME="$JDK_21_HOME"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
corretto17:
commands:
- echo "Installing Corretto(OpenJDK) version 17 ..."
- export JAVA_HOME="$JAVA_17_HOME"
- export JRE_HOME="$JRE_17_HOME"
- export JDK_HOME="$JDK_17_HOME"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
corretto11:
commands:
- echo "Installing Corretto(OpenJDK) version 11 ..."
- export JAVA_HOME="$JAVA_11_HOME"
- export JRE_HOME="$JRE_11_HOME"
- export JDK_HOME="$JDK_11_HOME"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
corretto8:
commands:
- echo "Installing Corretto(OpenJDK) version 8 ..."
- export JAVA_HOME="$JAVA_8_HOME"
- export JRE_HOME="$JRE_8_HOME"
- export JDK_HOME="$JDK_8_HOME"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
default:
commands:
- echo "Installing custom Corretto(OpenJDK) version $VERSION ..."
- apt-get update
- apt-get install -y java-$VERSION-amazon-corretto-jdk
- export JAVA_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JRE_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- export JDK_HOME="/usr/lib/jvm/java-$VERSION-amazon-corretto"
- |-
for tool_path in "$JAVA_HOME"/bin/*;
do tool=`basename "$tool_path"`;
if [ $tool != 'java-rmi.cgi' ];
then
rm -f /usr/bin/$tool /var/lib/alternatives/$tool;
update-alternatives --install /usr/bin/$tool $tool $tool_path 20000;
update-alternatives --set $tool $tool_path;
fi;
done
golang:
versions:
1.22:
commands:
- echo "Installing Go version 1.22 ..."
- goenv global $GOLANG_22_VERSION
1.21:
commands:
- echo "Installing Go version 1.21 ..."
- goenv global $GOLANG_21_VERSION
1.20:
commands:
- echo "Installing Go version 1.20 ..."
- goenv global $GOLANG_20_VERSION
default:
commands:
- echo "Installing custom Go version $VERSION ..."
- goenv install $VERSION && rm -rf /tmp/*
- goenv global $VERSION
python:
versions:
3.12:
commands:
- echo "Installing Python version 3.12 ..."
- pyenv global $PYTHON_312_VERSION
3.11:
commands:
- echo "Installing Python version 3.11 ..."
- pyenv global $PYTHON_311_VERSION
3.10:
commands:
- echo "Installing Python version 3.10 ..."
- pyenv global $PYTHON_310_VERSION
3.9:
commands:
- echo "Installing Python version 3.9 ..."
- pyenv global $PYTHON_39_VERSION
default:
commands:
- echo "Installing custom Python version $VERSION ..."
- pyenv install $VERSION && rm -rf /tmp/*
- pyenv global $VERSION
php:
versions:
8.3:
commands:
- echo "Installing PHP version 8.3 ..."
- phpenv global $PHP_83_VERSION
8.2:
commands:
- echo "Installing PHP version 8.2 ..."
- phpenv global $PHP_82_VERSION
default:
commands:
- echo "Installing custom PHP version $VERSION ..."
- phpenv install $VERSION && rm -rf /tmp/*
- phpenv global $VERSION
ruby:
versions:
3.3:
commands:
- echo "Installing Ruby version 3.3 ..."
- rbenv global $RUBY_33_VERSION
3.2:
commands:
- echo "Installing Ruby version 3.2 ..."
- rbenv global $RUBY_32_VERSION
3.1:
commands:
- echo "Installing Ruby version 3.1 ..."
- rbenv global $RUBY_31_VERSION
default:
commands:
- echo "Installing custom Ruby version $VERSION ..."
- rbenv install $VERSION && rm -rf /tmp/*
- rbenv global $VERSION
nodejs:
versions:
22:
commands:
- echo "Installing Node.js version 22 ..."
- n $NODE_22_VERSION
20:
commands:
- echo "Installing Node.js version 20 ..."
- n $NODE_20_VERSION
18:
commands:
- echo "Installing Node.js version 18 ..."
- n $NODE_18_VERSION
default:
commands:
- echo "Installing custom Node.js version $VERSION ..."
- n $VERSION && rm -rf /tmp/*
dotnet:
versions:
8.0:
commands:
- echo "Installing .NET version 8.0 ..."
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $DOTNET_8_GLOBAL_JSON_SDK_VERSION --roll-forward feature
6.0:
commands:
- echo "Installing .NET version 6.0 ..."
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $DOTNET_6_GLOBAL_JSON_SDK_VERSION --roll-forward feature
default:
commands:
- echo "Installing custom .Net version $VERSION ..."
- /usr/local/bin/dotnet-install.sh -v $VERSION && rm -rf /tmp/*
- test -f "global.json" && echo "Using provided global.json" || dotnet new globaljson --sdk-version $VERSION --roll-forward feature