From ac8fdcd1468992c6b88aa6cd0ea1f9b53f058ae6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serkan=20=C3=96ZAL?= Date: Tue, 14 Jan 2025 20:38:43 +0300 Subject: [PATCH] feat(collector): add manual collector build workflow --- .github/workflows/build-collector.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build-collector.yml diff --git a/.github/workflows/build-collector.yml b/.github/workflows/build-collector.yml new file mode 100644 index 0000000000..7d11400ac5 --- /dev/null +++ b/.github/workflows/build-collector.yml @@ -0,0 +1,27 @@ +name: "Manual Build (Collector)" + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + architecture: [ amd64, arm64 ] + outputs: + COLLECTOR_VERSION: ${{ steps.save-collector-version.outputs.COLLECTOR_VERSION }} + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: '~1.21.9' + - name: Build Collector + run: make -C collector package GOARCH=${{ matrix.architecture }} + - name: Upload Collector Artifact + uses: actions/upload-artifact@v4 + with: + name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip + path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip