Add build scripts
Some checks reported errors
firka/flutter/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Armand 2025-07-17 09:53:01 +00:00 committed by jenkins-runner
parent 2d297f9d95
commit 285e5f4db4
3 changed files with 37 additions and 0 deletions

21
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,21 @@
pipeline {
agent { label 'ubuntu' }
environment {
PATH = "/home/jenkins/depot_tools:${env.PATH}"
}
stages {
stage('Build release') {
steps {
script {
sh '''#!/bin/sh
set -xe
. dev/tools/envsetup.sh
gclient sync -D
./dev/tools/build_release.sh
'''
}
}
}
}
}

9
dev/tools/build_release.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
cd engine/src/out/
et build -c ci/android_release -j $(nproc)
et build -c host_release -j $(nproc)
rm android_release || true
ln -sf ci/android_release android_release

7
dev/tools/envsetup.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
ET_P=$(pwd)/engine/src/flutter/bin/
echo "Adding $ET_P to path"
PATH=$PATH:$ET_P
echo "Writing flutter root path to ~/.flutter_path"
echo $PWD > ~/.flutter_path