项目文件夹

文件
wehub-resource-sync 5357c39144
Fuzzer / Run Fuzzer (push) Has been cancelled
Race tests / Go race tests (ubuntu-22.04) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:01:40 +08:00

18 行
438 B
Bash
可执行文件

#!/bin/bash
set -e
set -o pipefail
script_dir=$(dirname "$0")
cd $script_dir/../..
[ ! -z "$GO_BUILD_VERSION" ] || (echo "Must supply GO_BUILD_VERSION"; exit 1)
[ ! -z "$PROFILE" ] || (echo "Must supply PROFILE"; exit 1)
docker run --rm \
-v `pwd`:/src \
-v "$PROFILE":/cpu.pprof \
-e GO_BUILD_FLAGS='-pgo=/cpu.pprof' \
golang:"$GO_BUILD_VERSION"-trixie \
/src/utils/publishrelease/buildindocker.sh