mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-14 05:19:36 +00:00
25ff0a27de
* Create separate build directories based on version * Fix find_unused_asm.sh * Remove find_unused_asm.sh from Jenkinsfile * Revert diff.py * Clarify that gc-eu-mq is not "supported" yet * Revert xmlcreate.py (to be deleted) * Remove gc-eu-mq for now * Add version flags to diff_settings.py and sym_info.py * --version -> --oot-version * Fix --oot-version * Revert adding version flags to tools * Delete find_unused_asm.sh * Revert changes to first_diff.py output in tutorial * Factor out sed usages for spec
71 lines
2.1 KiB
Groovy
71 lines
2.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'oot'
|
|
}
|
|
|
|
stages {
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baserom_original.z64'
|
|
sh 'make -j setup'
|
|
}
|
|
}
|
|
stage('Build (qemu-irix)') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'ORIG_COMPILER=1 make -j'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
when {
|
|
not {
|
|
branch 'main'
|
|
}
|
|
}
|
|
steps {
|
|
sh 'make -j'
|
|
}
|
|
}
|
|
stage('Report Progress') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'mkdir reports'
|
|
sh 'python3 progress.py csv >> reports/progress-oot-nonmatching.csv'
|
|
sh 'python3 progress.py csv -m >> reports/progress-oot-matching.csv'
|
|
sh 'python3 progress.py shield-json > reports/progress-oot-shield.json'
|
|
stash includes: 'reports/*', name: 'reports'
|
|
}
|
|
}
|
|
stage('Update Progress') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
agent {
|
|
label 'zeldaret_website'
|
|
}
|
|
steps {
|
|
unstash 'reports'
|
|
sh 'cat reports/progress-oot-nonmatching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-nonmatching.csv'
|
|
sh 'cat reports/progress-oot-matching.csv >> /var/www/zelda64.dev/assets/csv/progress-oot-matching.csv'
|
|
sh 'cat reports/progress-oot-shield.json > /var/www/zelda64.dev/assets/csv/progress-oot-shield.json'
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
echo "Finished, deleting directory."
|
|
deleteDir()
|
|
}
|
|
cleanup {
|
|
echo "Clean up in post."
|
|
cleanWs(cleanWhenNotBuilt: false,
|
|
deleteDirs: true,
|
|
disableDeferredWipeout: true,
|
|
notFailBuild: true)
|
|
}
|
|
}
|
|
}
|