SimpleHelperTools/Jenkinsfile

72 lines
2 KiB
Text
Raw Normal View History

2024-08-30 20:37:25 -07:00
pipeline {
agent any
stages {
stage("Build on Linux") {
agent {
label 'linux'
}
steps {
sh '''
#!/bin/bash
./compile.sh
2024-08-30 20:37:25 -07:00
'''
}
post {
always {
archiveArtifacts artifacts: "dart/out/*", fingerprint: true
archiveArtifacts artifacts: "cpp/build/vsleep", fingerprint: true
archiveArtifacts artifacts: "cpp/build/pause", fingerprint: true
2024-08-30 20:37:25 -07:00
deleteDir()
}
}
}
2024-08-30 21:07:26 -07:00
stage("Build on Windows") {
agent {
label 'windows'
}
steps {
bat '''
git clean -xfd
git reset --hard
mkdir cpp\\build
cd cpp\\build
cmake ..
cmake --build .
2024-08-30 21:07:26 -07:00
cd ..\\..
cd dart
mkdir out
2024-08-30 23:49:17 -07:00
dart pub get
2024-08-30 21:07:26 -07:00
dart compile exe -o out\\dbikc.exe bin\\dbikc.dart
dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart
dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart
dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
dart compile exe -o out\\pause.exe bin\\pause.dart
2024-08-30 23:21:22 -07:00
dart compile exe -o out\\sleep.exe bin\\sleep.dart
2024-08-30 21:07:26 -07:00
cd ..
'''
}
post {
always {
archiveArtifacts artifacts: "dart\\out\\*.exe", fingerprint: true
archiveArtifacts artifacts: "cpp\\build\\Debug\\vsleep.exe", fingerprint: true
archiveArtifacts artifacts: "cpp\\build\\Debug\\pause.exe", fingerprint: true
deleteDir()
2024-08-30 21:07:26 -07:00
}
}
}
2024-08-30 20:37:25 -07:00
}
}