feat: add jenkinsfile for building JSON-enable binary
This commit is contained in:
parent
e584ecd8a2
commit
2ee8809c7b
@ -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
22
Jenkinsfile
vendored
Normal 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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user