Skip to content

Commit

Permalink
build gmp
Browse files Browse the repository at this point in the history
  • Loading branch information
polymetric committed Apr 19, 2021
1 parent 6c436f1 commit 590b883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ pipeline {
CROSS_TRIPLE='x86_64-unknown-linux-gnu'
}
steps {
sh 'wget https://gmplib.org/download/gmp/gmp-6.2.1.tar.xz'
sh 'tar xf gmp-6.2.1.tar.xz'
dir ('gmp-6.2.1') {
sh './configure --host amd64 --enable-fat'
sh 'make'
sh 'make check'
sh 'make install'
}
sh 'mkdir -p build'
sh 'set -e \
&& apt-get update \
&& apt-get install \
libgmp-dev \
&& rm -rf /var/lib/apt/lists/ \
'
sh "\$CXX main.cpp -o build/prines_${VERSION}_${CROSS_TRIPLE} -I./include -lboinc -lboinc_api -lgmp -lgmpxx -Ofast"
stash includes: "build/prines_${VERSION}_${CROSS_TRIPLE}.exe", name: 'bin linux x64'
}
Expand Down
2 changes: 1 addition & 1 deletion package
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ case $1 in
fi
tar cJvf $2.tar.xz apps/
echo "done"
;;
;;
esac

0 comments on commit 590b883

Please sign in to comment.