1 Star 1 Fork 0

mojerro/compiler-explorer-infra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
admin-daily-builds.sh 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Godbolt 提交于 2022-09-26 10:20 +08:00 . Misc fixups post poetry
#!/bin/bash
set -exuo pipefail
finish() {
ce builder stop
}
trap finish EXIT
ce builder status
ce builder start
BUILD_FAILED=0
build_cpp_libraries() {
local BUILD_NAME=librarycpp
local COMMAND=build.sh
local CONAN_PASSWORD
CONAN_PASSWORD=$(aws ssm get-parameter --name /compiler-explorer/conanpwd | jq -r .Parameter.Value)
ce builder exec -- sudo docker run --rm --name "${BUILD_NAME}.build" \
-v/home/ubuntu/.s3cfg:/root/.s3cfg:ro \
-v/opt:/opt:ro \
-e 'LOGSPOUT=ignore' \
-e "CONAN_PASSWORD=${CONAN_PASSWORD}" \
"compilerexplorer/library-builder" \
bash "${COMMAND}" "c++" "all" "all"
}
build_rust_libraries() {
local BUILD_NAME=libraryrust
local COMMAND=build.sh
local CONAN_PASSWORD
CONAN_PASSWORD=$(aws ssm get-parameter --name /compiler-explorer/conanpwd | jq -r .Parameter.Value)
ce builder exec -- sudo docker run --rm --name "${BUILD_NAME}.build" \
-v/home/ubuntu/.s3cfg:/root/.s3cfg:ro \
-v/opt:/opt:ro \
-e 'LOGSPOUT=ignore' \
-e "CONAN_PASSWORD=${CONAN_PASSWORD}" \
"compilerexplorer/library-builder" \
bash "${COMMAND}" "rust" "all" "all"
}
build_cpp_libraries
build_rust_libraries
exit ${BUILD_FAILED}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mojerro/compiler-explorer-infra.git
git@gitee.com:mojerro/compiler-explorer-infra.git
mojerro
compiler-explorer-infra
compiler-explorer-infra
main

搜索帮助