Add non-selfcontained build to jenkins

This commit is contained in:
Toastie 2024-12-27 19:26:24 +13:00
parent f5d044512a
commit a9c28a04b6
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

12
Jenkinsfile vendored
View file

@ -10,12 +10,16 @@ pipeline {
parallel { parallel {
stage('Linux') { stage('Linux') {
steps { steps {
sh 'dotnet publish -r linux-x64 -c Release --self-contained true --no-restore --output Linux-x64/' sh 'dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true --no-restore --output Linux-x64/'
sh 'mv Linux-x64/SupportChild Linux-x64/SupportChild-SC'
sh 'dotnet publish -r linux-x64 -c Release -p:PublishSingleFile=true --self-contained false --no-restore --output Linux-x64/'
} }
} }
stage('Windows') { stage('Windows') {
steps { steps {
sh 'dotnet publish -r win-x64 -c Release --self-contained true --no-restore --output Windows-x64/' sh 'dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true --no-restore --output Windows-x64/'
sh 'mv Windows-x64/SupportChild.exe Windows-x64/SupportChild-SC.exe'
sh 'dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true --self-contained false --no-restore --output Windows-x64/'
} }
} }
} }
@ -25,14 +29,16 @@ pipeline {
stage('Linux') { stage('Linux') {
steps { steps {
archiveArtifacts(artifacts: 'Linux-x64/SupportChild', caseSensitive: true) archiveArtifacts(artifacts: 'Linux-x64/SupportChild', caseSensitive: true)
archiveArtifacts(artifacts: 'Linux-x64/SupportChild-SC', caseSensitive: true)
} }
} }
stage('Windows') { stage('Windows') {
steps { steps {
archiveArtifacts(artifacts: 'Windows-x64/SupportChild.exe', caseSensitive: true) archiveArtifacts(artifacts: 'Windows-x64/SupportChild.exe', caseSensitive: true)
archiveArtifacts(artifacts: 'Windows-x64/SupportChild-SC.exe', caseSensitive: true)
} }
} }
} }
} }
} }
} }