ci: use Nix shell for Linux library builds

Just noticed that was the only one not using it.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-04-05 16:48:47 +02:00
parent fb36298e37
commit 22bc76c39f
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
6 changed files with 19 additions and 13 deletions

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'linux' } agent { label 'linux' }

View File

@ -1,7 +1,7 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'linux && x86_64' } agent { label 'linux && x86_64 && nix-2.11' }
parameters { parameters {
string( string(

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'linux' } agent { label 'linux' }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'macos && aarch64 && go-1.18 && nix-2.11' } agent { label 'macos && aarch64 && go-1.18 && nix-2.11' }

View File

@ -1,7 +1,7 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'linux && x86_64 && go-1.18' } agent { label 'linux && x86_64 && nix-2.11' }
parameters { parameters {
string( string(
@ -44,10 +44,16 @@ pipeline {
} }
/* Sanity-check C bindings */ /* Sanity-check C bindings */
stage('Bindings Check') { stage('Build Static Lib') {
steps { steps { script {
sh 'make statusgo-library' nix.shell('make statusgo-library', pure: false)
} } }
}
stage('Build Shared Lib') {
steps { script {
nix.shell('make statusgo-shared-library', pure: false)
} }
} }
stage('Archive') { stage('Archive') {

View File

@ -1,7 +1,7 @@
library 'status-jenkins-lib@v1.6.7' library 'status-jenkins-lib@v1.7.0'
pipeline { pipeline {
agent { label 'linux && x86_64 && go-1.18' } agent { label 'linux && x86_64 && nix-2.11' }
parameters { parameters {
string( string(