New builds

This commit is contained in:
retropikzel 2026-07-22 16:37:09 +03:00
parent b8921f60f0
commit 2f1f7e9b59
2 changed files with 18 additions and 22 deletions

18
Jenkinsfile vendored
View File

@ -21,25 +21,20 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
} }
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
script { script {
def config = readYaml file: 'buildconfig.yaml' def builds = readYaml file: 'buildconfig.yaml'
config.schemes.each { scheme -> builds.each { build ->
stage("${scheme.name}") { stage("${build.name}") {
agent { agent {
docker { docker {
image "schemers/${scheme}:${scheme.docker-tag}" image "build.image"
} }
} }
environment { build.stages.each { stage ->
COMPILE_R7RS="${scheme.scheme}" stage("${stage.name}") {
SCHEME="${scheme.scheme}"
}
scheme.stages.each { stage ->
stage("${stage}") {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh "${stage.cmd}" sh "${stage.cmd}"
} }
@ -51,6 +46,7 @@ pipeline {
} }
} }
} }
post { post {
always { always {
cleanWs() cleanWs()

View File

@ -1,14 +1,14 @@
schemes: builds:
- name: Chibi - name: Chibi
scheme: chibi image: schemers/chibi:head
docker-tag: head stages:
init-cmd: | - name: Init
apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev cmd: |
git clone https://github.com/ashinn/chibi-scheme.git --depth=1 apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev
make -j8 -C chibi-scheme git clone https://github.com/ashinn/chibi-scheme.git --depth=1
make -j8 -C chibi-scheme install make -j8 -C chibi-scheme
snow-chibi install retropikzel.compile-r7rs make -j8 -C chibi-scheme install
stages: snow-chibi install retropikzel.compile-r7rs
- name: tap - name: tap
cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap cmd: compile-r7rs -o tap retropikzel/tap/test.scm && ./tap