diff --git a/.gitignore b/.gitignore index 1b8885e0..ce7c9f30 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ !LICENSE* !Makefile +!Jenkinsfile nimcache/ diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..c7e54c92 --- /dev/null +++ b/Jenkinsfile @@ -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() } + } +} diff --git a/flake.nix b/flake.nix index 37d459a0..4302b3d2 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {