add env
This commit is contained in:
parent
53f06aad6e
commit
a8c97ab63d
@ -28,7 +28,7 @@ cd ..
|
|||||||
echo -e ${RED} -------- set envs ${NC}
|
echo -e ${RED} -------- set envs ${NC}
|
||||||
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
||||||
|
|
||||||
echo -e ${RED} -------- cheking chromium pre-prepared ${NC}
|
echo -e ${RED} -------- download chromium pre-prepared ${NC}
|
||||||
rm chromium.$VERSION.tar.gz
|
rm chromium.$VERSION.tar.gz
|
||||||
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; get chromium.$VERSION.tar.gz; quit" && OK=1 || OK=0
|
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; get chromium.$VERSION.tar.gz; quit" && OK=1 || OK=0
|
||||||
if [[ OK -eq 0 ]]; then
|
if [[ OK -eq 0 ]]; then
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e ${RED} -------- set envs ${NC}
|
||||||
|
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
||||||
|
|
||||||
cipd install infra/goma/client/linux-amd64 -root $PWD/goma
|
cipd install infra/goma/client/linux-amd64 -root $PWD/goma
|
||||||
|
|
||||||
cat "nomatter" >$PWD/.debug_auth_file
|
cat "nomatter" >$PWD/.debug_auth_file
|
||||||
|
@ -3,8 +3,37 @@
|
|||||||
RED='\033[0;31m'
|
RED='\033[0;31m'
|
||||||
NC='\033[0m' # No Color
|
NC='\033[0m' # No Color
|
||||||
|
|
||||||
|
#if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
|
||||||
|
# GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha)
|
||||||
|
#fi
|
||||||
|
|
||||||
|
echo -e ${RED} -------- set envs ${NC}
|
||||||
|
PATH=$PWD/chromium/src/third_party/llvm-build/Release+Asserts/bin:$PWD/depot_tools/:/usr/local/go/bin:$PATH
|
||||||
|
|
||||||
cd chromium/src
|
cd chromium/src
|
||||||
|
|
||||||
|
echo -e ${RED} -------- gn gen ${NC}
|
||||||
gn gen --args="$(cat ~/bromite/build/GN_ARGS) target_cpu=\"x86\" use_goma=true goma_dir=\"$PWD/goma\" " out/x86
|
gn gen --args="$(cat ~/bromite/build/GN_ARGS) target_cpu=\"x86\" use_goma=true goma_dir=\"$PWD/goma\" " out/x86
|
||||||
|
|
||||||
|
echo -e ${RED} -------- checking prebuild ${NC}
|
||||||
|
rm out.$GITHUB_SHA.tar.gz
|
||||||
|
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; get out.x86.$GITHUB_SHA.tar.gz; quit" && OK=1 || OK=0
|
||||||
|
|
||||||
|
if [[ OK -eq 1 ]]; then
|
||||||
|
echo -e ${RED} -------- unpacking prebuild ${NC}
|
||||||
|
|
||||||
|
tar xf out.x86.$GITHUB_SHA.tar.gz
|
||||||
|
|
||||||
|
# TODO add mtool restore
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e ${RED} -------- start build ${NC}
|
||||||
autoninja -j 40 -C out/x86 chrome_public_apk
|
autoninja -j 40 -C out/x86 chrome_public_apk
|
||||||
|
|
||||||
|
# TODO add mtool backup
|
||||||
|
|
||||||
|
echo -e ${RED} -------- tar out ${NC}
|
||||||
|
tar -czf out.x86.$GITHUB_SHA.tar.gz ./out
|
||||||
|
|
||||||
|
echo -e ${RED} -------- uploading to storage ${NC}
|
||||||
|
lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; put out.x86.$GITHUB_SHA.tar.gz; quit"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user