save the agents in a per-$(uname) directory (#1030)

This commit is contained in:
bmc-msft
2021-06-30 11:33:05 -04:00
committed by GitHub
parent 2f71689d48
commit 59ad1f9b9b
2 changed files with 10 additions and 10 deletions

View File

@ -25,7 +25,7 @@ if [ "${GITHUB_REF}" != "" ]; then
fi
fi
mkdir -p artifacts/agent
mkdir -p artifacts/agent-$(uname)
cd src/agent
@ -53,11 +53,11 @@ cargo test --release --workspace
# TODO: once Salvo is integrated, this can get deleted
cargo build --release --manifest-path ./onefuzz-telemetry/Cargo.toml --all-features
cp target/release/onefuzz-agent* ../../artifacts/agent
cp target/release/onefuzz-supervisor* ../../artifacts/agent
cp target/release/onefuzz-agent* ../../artifacts/agent-$(uname)
cp target/release/onefuzz-supervisor* ../../artifacts/agent-$(uname)
if exists target/release/*.pdb; then
for file in target/release/*.pdb; do
cp ${file} ../../artifacts/agent
cp ${file} ../../artifacts/agent-$(uname)
done
fi