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

@ -325,12 +325,12 @@ jobs:
cp artifacts/azcopy/azcopy artifacts/azcopy/ThirdPartyNotice.txt src/deployment/tools/linux
cp artifacts/azcopy/azcopy.exe artifacts/azcopy/ThirdPartyNotice.txt src/deployment/tools/win64
fi
cp artifacts/agent/onefuzz-supervisor.exe src/deployment/tools/win64/
cp artifacts/agent/onefuzz-agent.exe src/deployment/tools/win64/
cp artifacts/agent/onefuzz_supervisor.pdb src/deployment/tools/win64/
cp artifacts/agent/onefuzz_agent.pdb src/deployment/tools/win64/
cp artifacts/agent/onefuzz-supervisor src/deployment/tools/linux/
cp artifacts/agent/onefuzz-agent src/deployment/tools/linux/
cp artifacts/agent-MINGW*/onefuzz-supervisor.exe src/deployment/tools/win64/
cp artifacts/agent-MINGW*/onefuzz-agent.exe src/deployment/tools/win64/
cp artifacts/agent-MINGW*/onefuzz_supervisor.pdb src/deployment/tools/win64/
cp artifacts/agent-MINGW*/onefuzz_agent.pdb src/deployment/tools/win64/
cp artifacts/agent-Linux/onefuzz-supervisor src/deployment/tools/linux/
cp artifacts/agent-Linux/onefuzz-agent src/deployment/tools/linux/
cp artifacts/proxy/onefuzz-proxy-manager src/deployment/tools/linux/
cp artifacts/service/api-service.zip src/deployment
cp -r artifacts/third-party src/deployment

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