feat: add jenkinsfile for building JSON-enable binary

This commit is contained in:
Fernando Araoz 2025-01-22 20:02:21 -05:00
parent e584ecd8a2
commit 2ee8809c7b
2 changed files with 24 additions and 1 deletions

View File

@ -35,5 +35,6 @@ Now in Zig!
- [x] Parse minimal variable binding
- [x] Parse minimal statement
- [x] Parse minimal module
- [x] Recuperate errors & generate error messages for the lexer
- [x] Recover errors & generate error messages for the lexer
- [x] Serialize lex errors/tokens into JSON

22
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
docker {
reuseNode true
image 'stagex/zig:0.13.0'
}
}
stages {
stage('Build binary with JSON flag') {
steps {
sh 'zig build -Djson=true -Doptimize=ReleaseSmall'
}
}
stage('Move binary') {
steps {
sh 'mv ./zig-out/bin/thp /var/bin/thp-zig'
}
}
}
}