Skip to content

Commit

Permalink
WIP jenkins pipeline: remove native static builds
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 25, 2023
1 parent 8a0fd4c commit 7e284c2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 46 deletions.
46 changes: 7 additions & 39 deletions assembly/cicd/jenkins/test-builds.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,6 @@ pipeline {
}
}
stage('Ubuntu 20.04 x86-64 (portable)') {
agent {
label 'Ubuntu_x86-64'
}
steps {
timeout(time: 90, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-portable.sh .
chmod +x build-ubuntu-20.04-portable.sh
./build-ubuntu-20.04-portable.sh -t -a
'''
sh 'zip -r ton-x86_64-linux-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-x86_64-linux-portable.zip'
}
}
}
stage('Ubuntu 20.04 x86-64 (nix)') {
agent {
label 'Ubuntu_x86-64'
}
Expand All @@ -61,8 +45,8 @@ pipeline {
cp ./result/lib/libtonlibjson.so.0.5 tmp/
cp ./result/lib/libemulator.so tmp/
'''
sh 'zip -r ton-x86-64-linux-nix ./tmp/*'
archiveArtifacts artifacts: 'ton-x86-64-linux-nix.zip'
sh 'zip -r ton-x86-64-linux-portable ./tmp/*'
archiveArtifacts artifacts: 'ton-x86-64-linux-portable.zip'
}
}
}
Expand All @@ -83,22 +67,6 @@ pipeline {
}
}
stage('Ubuntu 20.04 aarch64 (portable)') {
agent {
label 'Ubuntu_arm64'
}
steps {
timeout(time: 90, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-20.04-portable.sh .
chmod +x build-ubuntu-20.04-portable.sh
./build-ubuntu-20.04-portable.sh -t -a
'''
sh 'zip -r ton-arm64-linux-portable ./artifacts/*'
archiveArtifacts artifacts: 'ton-arm64-linux-portable.zip'
}
}
}
stage('Ubuntu 20.04 aarch64 (nix)') {
agent {
label 'Ubuntu_arm64'
}
Expand All @@ -118,8 +86,8 @@ pipeline {
cp ./result/lib/libtonlibjson.so.0.5 tmp/
cp ./result/lib/libemulator.so tmp/
'''
sh 'zip -r ton-arm64-linux-nix ./tmp/*'
archiveArtifacts artifacts: 'ton-arm64-linux-nix.zip'
sh 'zip -r ton-arm64-linux-portable ./tmp/*'
archiveArtifacts artifacts: 'ton-arm64-linux-portable.zip'
}
}
}
Expand Down Expand Up @@ -184,13 +152,13 @@ pipeline {
steps {
timeout(time: 90, unit: 'MINUTES') {
sh '''
cp assembly/nix/macos-arm64-* .
cp assembly/nix/macos-x86-64-* .
export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
nix-build macos-arm64-static.nix
nix-build macos-x86-64-static.nix
mkdir tmp
cp ./result-bin/bin/* tmp/
rm -rf result-bin
nix-build macos-arm64-tonlib.nix
nix-build macos-x86-64-tonlib.nix
cp ./result/lib/libtonlibjson.dylib tmp/
cp ./result/lib/libemulator.dylib tmp/
'''
Expand Down
2 changes: 1 addition & 1 deletion assembly/nix/linux-arm64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ stdenv.mkDerivation {
];

makeStatic = true;
doCheck = false;
doCheck = true;

cmakeFlags = [
"-DTON_USE_ABSEIL=OFF"
Expand Down
2 changes: 1 addition & 1 deletion assembly/nix/macos-arm64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ pkgs.stdenv.mkDerivation { # clang default


dontAddStaticConfigureFlags = true;
doCheck = false;
makeStatic = true;
doCheck = true;

configureFlags = [];

Expand Down
4 changes: 1 addition & 3 deletions assembly/nix/macos-arm64-tonlib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ pkgs.stdenv.mkDerivation { # clang default
(libiconv.override { enableStatic = true; enableShared = false; })
];


dontAddStaticConfigureFlags = true;
doCheck = false;

configureFlags = [];

Expand All @@ -54,4 +52,4 @@ pkgs.stdenv.mkDerivation { # clang default
install_name_tool -change "$(otool -L "$fn" | grep libc++abi.1 | cut -d' ' -f1 | xargs)" libc++abi.dylib "$fn"
done
'';
}
}
2 changes: 1 addition & 1 deletion assembly/nix/macos-x86-64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ pkgs.llvmPackages_14.stdenv.mkDerivation {


dontAddStaticConfigureFlags = true;
doCheck = false;
makeStatic = true;
doCheck = true;

configureFlags = [];

Expand Down
1 change: 0 additions & 1 deletion assembly/nix/macos-x86-64-tonlib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pkgs.llvmPackages_14.stdenv.mkDerivation {
(libiconv.override { enableStatic = true; enableShared = false; })
];


dontAddStaticConfigureFlags = true;

configureFlags = [];
Expand Down

0 comments on commit 7e284c2

Please sign in to comment.