add install-build-deps-android after download

This commit is contained in:
Your Name 2021-05-30 07:20:40 +00:00
parent d1e273bb95
commit 57fabd9b04
3 changed files with 16 additions and 6 deletions

View File

@ -29,8 +29,9 @@ 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} -------- download 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 wget -qO- ftp://$FTP_USER:$FTP_PWD@$FTP_HOST/bromite/chromium.$VERSION.tar.gz | tar xz - && 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
echo -e ${RED} -------- not found ${NC} echo -e ${RED} -------- not found ${NC}
@ -88,9 +89,12 @@ if [[ OK -eq 0 ]]; then
echo -e ${RED} -------- uploading to storage ${NC} 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 chromium.$VERSION.tar.gz; quit" lftp $FTP_HOST -u $FTP_USER,$FTP_PWD -e "set ftp:ssl-force true; set ssl:verify-certificate false; cd /bromite; put chromium.$VERSION.tar.gz; quit"
else else
echo -e ${RED} -------- unpacking ${NC} echo -e ${RED} -------- unpacked ${NC}
tar xf chromium.$VERSION.tar.gz echo -e ${RED} -------- running install-build-deps-android ${NC}
sudo chromium/src/build/install-build-deps-android.sh
#tar xf chromium.$VERSION.tar.gz
fi fi
rm chromium.$VERSION.tar.gz rm chromium.$VERSION.tar.gz

View File

@ -7,8 +7,6 @@ NC='\033[0m' # No Color
# GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha) # GITHUB_SHA=$(cat $GITHUB_EVENT_PATH | jq -r .pull_request.head.sha)
#fi #fi
sudo apt-get install -y libxkbcommon-dev
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

View File

@ -1,9 +1,17 @@
#!/bin/bash #!/bin/bash
RED='\033[0;31m'
NC='\033[0m' # No Color
#export GOPATH=~/go #export GOPATH=~/go
#export GOCACHE=~/go #export GOCACHE=~/go
export REDISHOST=localhost export REDISHOST=localhost
echo -e ${RED} -------- cloning goma-server ${NC}
git clone https://github.com/uazo/goma-server git clone https://github.com/uazo/goma-server
echo -e ${RED} -------- start goma-server ${NC}
cd ./goma-server/ cd ./goma-server/
go run ./cmd/remoteexec_proxy/main.go --port 5050 --remoteexec-addr $REMOTEEXEC_ADDR --remote-instance-name default_instance --insecure-remoteexec --allowed-users ppp --exec-config-file "./config-file" --exec-check-cache-timeout 30s --exec-max-retry-count 50 --exec-execute-timeout 600s >log.txt 2>&1 & go run ./cmd/remoteexec_proxy/main.go --port 5050 --remoteexec-addr $REMOTEEXEC_ADDR --remote-instance-name default_instance --insecure-remoteexec --allowed-users ppp --exec-config-file "./config-file" --exec-check-cache-timeout 30s --exec-max-retry-count 50 --exec-execute-timeout 600s >log.txt 2>&1 &