From bbfe6f3c4688680db89484058b53ba40f462bfa3 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 31 May 2021 12:06:40 +0000 Subject: [PATCH] start goma from build --- start-build.sh | 4 ++++ start-goma-server.sh | 2 ++ start_proxy.sh | 14 ++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 start_proxy.sh diff --git a/start-build.sh b/start-build.sh index 6089653..cdd0b41 100644 --- a/start-build.sh +++ b/start-build.sh @@ -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} diff --git a/start-goma-server.sh b/start-goma-server.sh index a50f17c..88f0b45 100755 --- a/start-goma-server.sh +++ b/start-goma-server.sh @@ -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 .. diff --git a/start_proxy.sh b/start_proxy.sh new file mode 100644 index 0000000..1b3f186 --- /dev/null +++ b/start_proxy.sh @@ -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 .. \ No newline at end of file