mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 07:07:09 +00:00
d65fb6ed28
* Check format: only check modified files, v2 * cheeky z_play edit * format * rename z_play.c -> z_play_.c * Revert "rename z_play.c -> z_play_.c" This reverts commit9da9e76309
. * rm z_moji.c * Revert "rm z_moji.c" This reverts commitbd2d5acb5a
.
91 lines
2.7 KiB
Groovy
91 lines
2.7 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'oot'
|
|
}
|
|
|
|
stages {
|
|
stage('Check formatting (full)') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
echo 'Checking formatting on all files...'
|
|
sh 'python3 tools/check_format.py'
|
|
}
|
|
}
|
|
stage('Check formatting (modified)') {
|
|
when {
|
|
not {
|
|
branch 'main'
|
|
}
|
|
}
|
|
steps {
|
|
echo 'Checking formatting on modified files...'
|
|
sh 'python3 tools/check_format.py --verbose --compare-to origin/main'
|
|
}
|
|
}
|
|
stage('Setup') {
|
|
steps {
|
|
sh 'cp /usr/local/etc/roms/baserom_oot.z64 baseroms/gc-eu-mq-dbg/baserom.z64'
|
|
sh 'make -j setup'
|
|
}
|
|
}
|
|
stage('Build (qemu-irix)') {
|
|
when {
|
|
branch 'main'
|
|
}
|
|
steps {
|
|
sh 'make -j ORIG_COMPILER=1'
|
|
}
|
|
}
|
|
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)
|
|
}
|
|
}
|
|
}
|