Skip to content

Commit

Permalink
add nix free builds
Browse files Browse the repository at this point in the history
  • Loading branch information
neodiX committed Sep 1, 2024
1 parent c6d6544 commit cd632a4
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 4 deletions.
104 changes: 104 additions & 0 deletions assembly/cicd/jenkins/test-builds-no-nix.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
pipeline {

agent none
stages {
stage('Run Builds') {
parallel {
stage('Ubuntu 20.04 x86-64 (portable)') {
agent {
label 'Ubuntu_x86-64'
}
steps {
timeout(time: 180, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-portable.sh .
chmod +x build-ubuntu-portable.sh
./build-ubuntu-portable.sh
'''
sh '''
cd artifacts
zip -9r ton-x86-64-linux-portable ./*
'''
archiveArtifacts artifacts: 'artifacts/ton-x86-64-linux-portable.zip'
}
}
}
stage('Ubuntu 20.04 aarch64 (portable)') {
agent {
label 'Ubuntu_arm64'
}
steps {
timeout(time: 180, unit: 'MINUTES') {
sh '''
cp assembly/native/build-ubuntu-portable.sh .
chmod +x build-ubuntu-portable.sh
./build-ubuntu-portable.sh
'''
sh '''
cd artifacts
zip -9r ton-arm64-linux-portable ./*
'''
archiveArtifacts artifacts: 'artifacts/ton-arm64-linux-portable.zip'
}
}
}
stage('macOS 12.7 x86-64 (portable)') {
agent {
label 'macOS_12.7_x86-64'
}
steps {
timeout(time: 180, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-portable.sh .
chmod +x build-macos-portable.sh
./build-macos-portable.sh
'''
sh '''
cd artifacts
zip -9r build-macos-portable.sh ./*
'''
archiveArtifacts artifacts: 'artifacts/ton-x86-64-macos-portable.zip'
}
}
}
stage('macOS 12.6 aarch64 (portable)') {
agent {
label 'macOS_12.6-arm64-m1'
}
steps {
timeout(time: 180, unit: 'MINUTES') {
sh '''
cp assembly/native/build-macos-portable.sh .
chmod +x build-macos-portable.sh
./build-macos-portable.sh
'''
sh '''
cd artifacts
zip -9r ton-arm64-macos-portable ./*
'''
archiveArtifacts artifacts: 'artifacts/ton-arm64-macos-portable.zip'
}
}
}
stage('Windows Server 2022 x86-64') {
agent {
label 'Windows_x86-64'
}
steps {
timeout(time: 180, unit: 'MINUTES') {
bat '''
copy assembly\\native\\build-windows.bat .
build-windows.bat
'''
bat '''
cd artifacts
zip -9r ton-x86-64-windows ./*
'''
archiveArtifacts artifacts: 'artifacts/ton-x86-64-windows.zip'
}
}
}
}
}
}
}
2 changes: 0 additions & 2 deletions assembly/native/build-macos-portable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ if [ "$with_artifacts" = true ]; then
cp build/adnl/adnl-proxy artifacts/
cp build/emulator/libemulator.dylib artifacts/
chmod +x artifacts/*
rsync -r crypto/smartcont artifacts/
rsync -r crypto/fift/lib artifacts/
fi

if [ "$with_tests" = true ]; then
Expand Down
9 changes: 7 additions & 2 deletions assembly/native/build-ubuntu-portable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ while getopts 'ta' flag; do
esac
done

clang-16 -v
if [ $? -ne 0 ]; then
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16 all
fi

if [ ! -d "build" ]; then
mkdir build
cd build
Expand Down Expand Up @@ -205,8 +212,6 @@ if [ "$with_artifacts" = true ]; then
artifacts
test $? -eq 0 || { echo "Can't copy final binaries"; exit 1; }
chmod +x artifacts/*
cp -R crypto/smartcont artifacts
cp -R crypto/fift/lib artifacts
fi

if [ "$with_tests" = true ]; then
Expand Down

0 comments on commit cd632a4

Please sign in to comment.