mirror of
https://github.com/lxsang/luafcgi.git
synced 2024-12-27 05:38:22 +01:00
Compile rust app via dockers
Some checks failed
gitea-sync/luafcgi/pipeline/head There was a failure building this commit
Some checks failed
gitea-sync/luafcgi/pipeline/head There was a failure building this commit
This commit is contained in:
parent
68853e3429
commit
751054f4c7
39
Jenkinsfile
vendored
39
Jenkinsfile
vendored
@ -1,6 +1,3 @@
|
|||||||
// rustup target add aarch64-unknown-linux-gnu
|
|
||||||
// rustup target add armv7-unknown-linux-gnueabihf
|
|
||||||
|
|
||||||
def build_luad() {
|
def build_luad() {
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
@ -23,13 +20,13 @@ def build_luad() {
|
|||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
cargo build --target=$target --release
|
cargo build --release
|
||||||
file target/release/luad
|
cp $target/release/luad $DESTDIR
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent { node{ label'workstation' }}
|
agent { node { label'master' } }
|
||||||
options {
|
options {
|
||||||
// Limit build history with buildDiscarder option:
|
// Limit build history with buildDiscarder option:
|
||||||
// daysToKeepStr: history is only kept up to this many days.
|
// daysToKeepStr: history is only kept up to this many days.
|
||||||
@ -55,6 +52,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build AMD64') {
|
stage('Build AMD64') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'xsangle/ci-tools:bionic-amd64'
|
||||||
|
// Run the container on the node specified at the
|
||||||
|
// top-level of the Pipeline, in the same workspace,
|
||||||
|
// rather than on a new node entirely:
|
||||||
|
reuseNode true
|
||||||
|
registryUrl 'http://workstation:5000/'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.arch = 'amd64'
|
env.arch = 'amd64'
|
||||||
@ -63,6 +70,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build ARM64') {
|
stage('Build ARM64') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'xsangle/ci-tools:bionic-arm64'
|
||||||
|
// Run the container on the node specified at the
|
||||||
|
// top-level of the Pipeline, in the same workspace,
|
||||||
|
// rather than on a new node entirely:
|
||||||
|
reuseNode true
|
||||||
|
registryUrl 'http://workstation:5000/'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.arch = 'arm64'
|
env.arch = 'arm64'
|
||||||
@ -71,6 +88,16 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build ARM') {
|
stage('Build ARM') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'xsangle/ci-tools:bionic-arm'
|
||||||
|
// Run the container on the node specified at the
|
||||||
|
// top-level of the Pipeline, in the same workspace,
|
||||||
|
// rather than on a new node entirely:
|
||||||
|
reuseNode true
|
||||||
|
registryUrl 'http://workstation:5000/'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.arch = 'arm'
|
env.arch = 'arm'
|
||||||
|
Loading…
Reference in New Issue
Block a user