jenkins: create initial pipeline

Referenced issue: https://github.com/codex-storage/nim-codex/issues/940

Signed-off-by: markoburcul <marko@status.im>
This commit is contained in:
markoburcul 2025-01-15 11:14:16 +01:00 committed by Marko Burčul
parent 389ab59aa7
commit 893f6d02ab
3 changed files with 39 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
!LICENSE*
!Makefile
!Jenkinsfile
nimcache/

37
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,37 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.13'
pipeline {
agent { label 'linux && x86_64 && nix-2.24' }
options {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
stages {
stage('Build') {
steps {
script {
nix.flake("default")
}
}
}
stage('Check') {
steps {
script {
sh './result/bin/codex --version'
}
}
}
}
post {
cleanup { cleanWs() }
}
}

View File

@ -22,7 +22,7 @@
circomCompatPkg = circom-compat.packages.${system}.default;
buildTarget = pkgsFor.${system}.callPackage ./nix/default.nix rec {
inherit stableSystems circomCompatPkg;
src = pkgsFor.${system}.lib.traceValFn (v: "self.submodules: ${toString v.submodules}") self;
src = self;
};
build = targets: buildTarget.override { inherit targets; };
in rec {