From 440db5c931359cc5c2aa89171ac949ada086ac61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Wilczy=C5=84ski?= Date: Wed, 20 Nov 2024 17:18:23 +0100 Subject: [PATCH] Don't strip debug symbols Always use the mist with debug symbols. Related to https://github.com/livepeer/livepeer-infra/pull/2487 [Discord discussion](https://discord.com/channels/423160867534929930/1308533447056293889/1308740397840728084) --- .github/workflows/build.yaml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index abe4bd11f..f4e1bfa34 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,7 +20,7 @@ env: jobs: build: - name: "Download binaries for ${{ matrix.platform.name }}-${{ matrix.architecture }}" + name: "Download binaries for ${{ matrix.platform }}-${{ matrix.architecture }}" runs-on: ubuntu-20.04 strategy: fail-fast: false @@ -28,7 +28,7 @@ jobs: architecture: - amd64 platform: - - name: linux + - linux steps: - name: Check out code @@ -55,7 +55,7 @@ jobs: run: | mkdir -p "${CI_CATALYST_BIN_DIR}/" "releases/" go run cmd/downloader/downloader.go \ - --platform "${{ matrix.platform.name }}" \ + --platform "${{ matrix.platform }}" \ --architecture "${{ matrix.architecture }}" \ --path "./${CI_CATALYST_BIN_DIR}/" \ --manifest "manifest.yaml" \ @@ -64,7 +64,7 @@ jobs: - name: Set build environment run: | echo "GOARCH=${{ matrix.architecture }}" >> $GITHUB_ENV - echo "GOOS=${{ matrix.platform.name }}" >> $GITHUB_ENV + echo "GOOS=${{ matrix.platform }}" >> $GITHUB_ENV - name: Build binaries run: | @@ -77,17 +77,11 @@ jobs: - name: Download c2patool run: | - curl "https://build.livepeer.live/c2patool/0.6.2/c2patool-${{ matrix.platform.name }}-${{ matrix.architecture }}.tar.gz" -o c2patool.tar.gz + curl "https://build.livepeer.live/c2patool/0.6.2/c2patool-${{ matrix.platform }}-${{ matrix.architecture }}.tar.gz" -o c2patool.tar.gz tar -xvzf c2patool.tar.gz -C ./bin/ - - name: Strip binaries of debug symbols - if: matrix.platform.name == 'linux' && matrix.architecture == 'amd64' - run: | - cd "${CI_CATALYST_BIN_DIR}/" - find . -type f ! -name "*.sh" ! -name "livepeer-mist-bigquery-uploader" ! -name "livepeer-api" -exec strip -s {} \; - - name: Archive binaries for linux/macos - if: matrix.platform.name != 'windows' + if: matrix.platform != 'windows' run: | cd "${CI_CATALYST_BIN_DIR}/" tar -cvzf "../releases/livepeer-catalyst-${GOOS}-${GOARCH}.tar.gz" *