From 59ad1f9b9b9a0b0d27168db0b9dfc6cf8fc71a6c Mon Sep 17 00:00:00 2001 From: bmc-msft <41130664+bmc-msft@users.noreply.github.com> Date: Wed, 30 Jun 2021 11:33:05 -0400 Subject: [PATCH] save the agents in a per-$(uname) directory (#1030) --- .github/workflows/ci.yml | 12 ++++++------ src/ci/agent.sh | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c97841fed..0a2a57fbb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/ci/agent.sh b/src/ci/agent.sh index e4ffca948..e8717a492 100755 --- a/src/ci/agent.sh +++ b/src/ci/agent.sh @@ -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