From 53906c507a896a0d727aa74f7b65dece742ddfc0 Mon Sep 17 00:00:00 2001 From: Christopher Lowenthal Date: Tue, 1 Nov 2022 12:29:30 -0400 Subject: [PATCH] adds ldflags to builds --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 29f396f3c..330a028a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -86,8 +86,8 @@ jobs: - name: build featurebase run: | - go build -o ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/featurebase - go build -o ./build/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/roaring-migrate + go build -o ./build/featurebase-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./cmd/featurebase + go build -o ./build/roaring-migrate-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./cmd/roaring-migrate - uses: actions/upload-artifact@v3 with: @@ -124,22 +124,22 @@ jobs: go-version: "^1.19.1" - name: build ingester - run: go build -o ./build/ingester-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/ingester + run: go build -o ./build/ingester-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/ingester - name: build consumer-csv - run: go build -o ./build/consumer-csv-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/molecula-consumer-csv + run: go build -o ./build/consumer-csv-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-csv - name: build consumer-kafka-static - run: go build -o ./build/consumer-kafka-static-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/molecula-consumer-kafka-static + run: go build -o ./build/consumer-kafka-static-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kafka-static - name: build consumer-sql - run: go build -o ./build/consumer-sql-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/molecula-consumer-sql + run: go build -o ./build/consumer-sql-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-sql - name: build consumer-github - run: go build -o ./build/consumer-github-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/molecula-consumer-github + run: go build -o ./build/consumer-github-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-github - name: build consumer-kinesis - run: go build -o ./build/consumer-kinesis-${{ matrix.goos }}-${{ matrix.goarch }} ./idk/cmd/molecula-consumer-kinesis + run: go build -o ./build/consumer-kinesis-${{ matrix.goos }}-${{ matrix.goarch }} -ldflags "${{needs.meta.outputs.ldflags}}" ./idk/cmd/molecula-consumer-kinesis - uses: actions/upload-artifact@v3 with: