From be44fd3c57fc904d5257d18bc6ab9c3f9510203b Mon Sep 17 00:00:00 2001 From: David Lee Date: Fri, 22 Sep 2023 12:31:52 -0700 Subject: [PATCH] Update build-serverless-agent.yml --- .github/workflows/build-serverless-agent.yml | 35 ++++---------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build-serverless-agent.yml b/.github/workflows/build-serverless-agent.yml index b73ec5f3c..8e2559ab9 100644 --- a/.github/workflows/build-serverless-agent.yml +++ b/.github/workflows/build-serverless-agent.yml @@ -8,11 +8,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: david.lee/mini-agent-azure-tags - name: Install musl dependencies run: rustup target add x86_64-unknown-linux-musl && sudo apt-get install musl-tools - name: Build project run: cargo build --release -p datadog-serverless-trace-mini-agent --target x86_64-unknown-linux-musl - - name: Upload artifacts for release step + - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: datadog-serverless-agent-linux-amd64 @@ -23,36 +25,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: david.lee/mini-agent-azure-tags - name: Build project run: cargo build --release -p datadog-serverless-trace-mini-agent - - name: Upload artifacts for release step + - name: Upload artifacts uses: actions/upload-artifact@v3 with: name: datadog-serverless-agent-windows-amd64 path: target/release/datadog-serverless-trace-mini-agent.exe - upload: - name: Upload - needs: [build-windows, build-linux-musl] - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Download artifacts from build step - uses: actions/download-artifact@v3 - with: - path: target/release/binaries - - name: UPX compress binaries - run: | - for file in target/release/binaries/*/* - do - chmod +x "$file" - upx "$file" --lzma - done - - name: Zip binaries - run: zip -r datadog-serverless-agent.zip * - working-directory: target/release/binaries - - name: Upload - uses: actions/upload-artifact@v3 - with: - name: datadog-serverless-trace-mini-agent - path: target/release/binaries/datadog-serverless-agent.zip +