Skip to content

Commit 5d94047

Browse files
committed
WIP jenkins pipeline: add linux x86-64 nix build
1 parent a5b2f87 commit 5d94047

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

assembly/cicd/jenkins/test-builds.groovy

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pipeline {
1515
chmod +x llvm.sh
1616
sudo ./llvm.sh 16 all
1717
*/
18-
timeout(time: 90, unit: 'MINUTES') {
18+
timeout(time: 60, unit: 'MINUTES') {
1919
sh '''
2020
cp assembly/native/build-ubuntu-20.04-shared.sh .
2121
chmod +x build-ubuntu-20.04-shared.sh
@@ -31,7 +31,7 @@ pipeline {
3131
label 'Ubuntu_x86-64'
3232
}
3333
steps {
34-
timeout(time: 90, unit: 'MINUTES') {
34+
timeout(time: 60, unit: 'MINUTES') {
3535
sh '''
3636
cp assembly/native/build-ubuntu-20.04-portable.sh .
3737
chmod +x build-ubuntu-20.04-portable.sh
@@ -42,12 +42,28 @@ pipeline {
4242
}
4343
}
4444
}
45+
stage('Ubuntu 20.04 x86-64 (nix)') {
46+
agent {
47+
label 'Ubuntu_x86-64'
48+
}
49+
steps {
50+
timeout(time: 60, unit: 'MINUTES') {
51+
sh '''
52+
cp assembly/nix/linux-x86-64-static.nix .
53+
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.11.tar.gz
54+
nix-build linux-x86-64-static.nix
55+
'''
56+
sh 'zip -r ton-x86-64-linux-nix ./result/*'
57+
archiveArtifacts artifacts: 'ton-x86-64-linux-nix.zip'
58+
}
59+
}
60+
}
4561
stage('Ubuntu 20.04 aarch64 (shared)') {
4662
agent {
4763
label 'Ubuntu_arm64'
4864
}
4965
steps {
50-
timeout(time: 90, unit: 'MINUTES') {
66+
timeout(time: 60, unit: 'MINUTES') {
5167
sh '''
5268
cp assembly/native/build-ubuntu-20.04-shared.sh .
5369
chmod +x build-ubuntu-20.04-shared.sh
@@ -63,7 +79,7 @@ pipeline {
6379
label 'Ubuntu_arm64'
6480
}
6581
steps {
66-
timeout(time: 90, unit: 'MINUTES') {
82+
timeout(time: 60, unit: 'MINUTES') {
6783
sh '''
6884
cp assembly/native/build-ubuntu-20.04-portable.sh .
6985
chmod +x build-ubuntu-20.04-portable.sh
@@ -79,7 +95,7 @@ pipeline {
7995
label 'Ubuntu_arm64'
8096
}
8197
steps {
82-
timeout(time: 90, unit: 'MINUTES') {
98+
timeout(time: 60, unit: 'MINUTES') {
8399
sh '''
84100
cp assembly/nix/linux-x86-64-static.nix .
85101
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.11.tar.gz
@@ -95,7 +111,7 @@ pipeline {
95111
label 'macOS_12.7_x86-64'
96112
}
97113
steps {
98-
timeout(time: 90, unit: 'MINUTES') {
114+
timeout(time: 60, unit: 'MINUTES') {
99115
sh '''
100116
cp assembly/native/build-macos-shared.sh .
101117
chmod +x build-macos-shared.sh
@@ -111,7 +127,7 @@ pipeline {
111127
label 'macOS_12.7_x86-64'
112128
}
113129
steps {
114-
timeout(time: 90, unit: 'MINUTES') {
130+
timeout(time: 60, unit: 'MINUTES') {
115131
sh '''
116132
cp assembly/native/build-macos-portable.sh .
117133
chmod +x build-macos-portable.sh
@@ -127,7 +143,7 @@ pipeline {
127143
label 'macOS_12.6.3-arm64'
128144
}
129145
steps {
130-
timeout(time: 90, unit: 'MINUTES') {
146+
timeout(time: 60, unit: 'MINUTES') {
131147
sh '''
132148
cp assembly/native/build-macos-shared.sh .
133149
chmod +x build-macos-shared.sh
@@ -143,7 +159,7 @@ pipeline {
143159
label 'macOS_12.6.3-arm64'
144160
}
145161
steps {
146-
timeout(time: 90, unit: 'MINUTES') {
162+
timeout(time: 60, unit: 'MINUTES') {
147163
sh '''
148164
cp assembly/native/build-macos-portable.sh .
149165
chmod +x build-macos-portable.sh
@@ -159,7 +175,7 @@ pipeline {
159175
label 'macOS_13.2-arm64-m2'
160176
}
161177
steps {
162-
timeout(time: 90, unit: 'MINUTES') {
178+
timeout(time: 60, unit: 'MINUTES') {
163179
sh '''
164180
cp assembly/native/build-macos-shared.sh .
165181
chmod +x build-macos-shared.sh
@@ -175,7 +191,7 @@ pipeline {
175191
label 'macOS_13.2-arm64-m2'
176192
}
177193
steps {
178-
timeout(time: 90, unit: 'MINUTES') {
194+
timeout(time: 60, unit: 'MINUTES') {
179195
sh '''
180196
cp assembly/native/build-macos-portable.sh .
181197
chmod +x build-macos-portable.sh
@@ -191,7 +207,7 @@ pipeline {
191207
label 'Windows_x86-64'
192208
}
193209
steps {
194-
timeout(time: 90, unit: 'MINUTES') {
210+
timeout(time: 60, unit: 'MINUTES') {
195211
bat '''
196212
copy assembly\\native\\build-windows-github.bat .
197213
copy assembly\\native\\build-windows.bat .
@@ -207,7 +223,7 @@ pipeline {
207223
label 'Ubuntu_x86-64'
208224
}
209225
steps {
210-
timeout(time: 90, unit: 'MINUTES') {
226+
timeout(time: 60, unit: 'MINUTES') {
211227
sh '''
212228
cp assembly/android/build-android-tonlib.sh .
213229
chmod +x build-android-tonlib.sh
@@ -223,7 +239,7 @@ pipeline {
223239
label 'Ubuntu_x86-64'
224240
}
225241
steps {
226-
timeout(time: 90, unit: 'MINUTES') {
242+
timeout(time: 60, unit: 'MINUTES') {
227243
sh '''
228244
cd assembly/wasm
229245
chmod +x fift-func-wasm-build-ubuntu.sh

0 commit comments

Comments
 (0)