Исправлен packaging-gate для build-host без runtime-зависимостей

This commit is contained in:
2026-05-12 12:46:06 +05:00
parent 5800b6c874
commit bbefd299fd
+12 -3
View File
@@ -225,11 +225,20 @@ prepare_build_gate() {
cargo clippy --locked --workspace --all-targets --manifest-path "$WORKSPACE_MANIFEST" -- -D warnings cargo clippy --locked --workspace --all-targets --manifest-path "$WORKSPACE_MANIFEST" -- -D warnings
cargo test --locked --workspace --release --manifest-path "$WORKSPACE_MANIFEST" cargo test --locked --workspace --release --manifest-path "$WORKSPACE_MANIFEST"
cargo build --locked --workspace --release --manifest-path "$WORKSPACE_MANIFEST" cargo build --locked --workspace --release --manifest-path "$WORKSPACE_MANIFEST"
cargo metadata --locked --manifest-path "$WORKSPACE_MANIFEST" >/dev/null cargo metadata --locked --format-version 1 --manifest-path "$WORKSPACE_MANIFEST" >/dev/null
if command -v systemd-analyze >/dev/null 2>&1; then if command -v systemd-analyze >/dev/null 2>&1; then
systemd-analyze verify "$ROOT_DIR/awg2-harness.service" local docker_unit_present=false
systemd-analyze verify "$ROOT_DIR/awg2-reboot-scheduler.service" if [[ -e /lib/systemd/system/docker.service || -e /usr/lib/systemd/system/docker.service || -e /etc/systemd/system/docker.service ]]; then
docker_unit_present=true
fi
if [[ -x /usr/sbin/awg2-harness && -x /usr/sbin/awg2-reboot-scheduler && "$docker_unit_present" == true ]]; then
systemd-analyze verify "$ROOT_DIR/awg2-harness.service"
systemd-analyze verify "$ROOT_DIR/awg2-reboot-scheduler.service"
else
echo "Skipping source-tree systemd-analyze verify: package runtime files or docker.service are not present on this build host"
fi
fi fi
file "$TARGET_BIN" file "$TARGET_BIN"