start goma from build

This commit is contained in:
Your Name 2021-05-31 12:06:40 +00:00
parent 087f903e46
commit bbfe6f3c46
3 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,10 @@ NC='\033[0m' # No Color
echo -e ${RED} -------- set envs ${NC}
PATH=$GITHUB_WORKSPACE/chromium/src/third_party/llvm-build/Release+Asserts/bin:$GITHUB_WORKSPACE/depot_tools/:/usr/local/go/bin:$PATH
bash ./bromite-buildtools/start-goma-server.sh
bash ./bromite-buildtools/setup-goma-client.sh
bash ./bromite-buildtools/start_proxy.sh
cd chromium/src
echo -e ${RED} -------- gn gen ${NC}

View File

@ -15,3 +15,5 @@ echo -e ${RED} -------- start goma-server ${NC}
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 &
cd ..

14
start_proxy.sh Normal file
View File

@ -0,0 +1,14 @@
mkdir ngrok
cd ngrok/
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
unzip ngrok-stable-linux-amd64.zip
./ngrok authtoken $NGROK_TOKEN
./ngrok http 8088 --log stdout --log-level info >ngrok.txt &
sleep 10s
cat ngrok.txt
cd ..