Playtest launcher: the build container gets the git safe.directory and machine-id the verify jobs get, and keeps its build log
This commit is contained in:
parent
56d955690b
commit
373b5f35a3
1 changed files with 2 additions and 1 deletions
|
|
@ -54,9 +54,10 @@ bin=$bin_dir/ghostlight-dungeon-$rev
|
|||
if [ ! -x "$bin" ]; then
|
||||
sudo docker run --rm --cpus=4 --memory=6g \
|
||||
-v "$PWD:/src" -v eureka-cargo-home:/cargo-home -e CARGO_HOME=/cargo-home \
|
||||
-v /etc/machine-id:/etc/machine-id:ro -e GIT_CONFIG_COUNT=1 -e GIT_CONFIG_KEY_0=safe.directory -e GIT_CONFIG_VALUE_0='*' \
|
||||
-e GHOSTLIGHT_BUILD_COMMIT="$rev" -v "$bin_dir:/out" -w /src "$IMAGE" bash -c '
|
||||
set -euo pipefail
|
||||
exe=$(cargo test --locked -p ghostlight-dungeon --no-run --message-format=json 2>/dev/null \
|
||||
exe=$(cargo test --locked -p ghostlight-dungeon --no-run --message-format=json 2>/out/build.log \
|
||||
| grep "\"test\":true" | grep "\"executable\":\"[^\"]*/ghostlight_dungeon-" \
|
||||
| sed "s/.*\"executable\":\"\([^\"]*\)\".*/\1/" | tail -1)
|
||||
test -n "$exe"
|
||||
|
|
|
|||
Loading…
Reference in a new issue