Skip to content

Commit

Permalink
Fix ldflags again
Browse files Browse the repository at this point in the history
  • Loading branch information
icyflame committed Jul 12, 2024
1 parent 51e49c5 commit 6a778d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
- name: Build binary for the required OS and architecture
run: |
OUTPUT_FILE_NAME="./$(basename ${{ matrix.path-to-build }})-${{ matrix.os-flavor }}-${{ matrix.architecture }}"
LDFLAGS='-ldflags="-X \"github.com/icyflame/kindle-my-clippings-parser/internal/env.Version=${{ github.ref }} '"$GITHUB_SHA"'\""'
GOOS=${{ matrix.os-flavor }} GOARCH=${{ matrix.architecture }}
GOOS=${{ matrix.os-flavor }} GOARCH=${{ matrix.architecture }} \
-ldflags="-X \"github.com/icyflame/kindle-my-clippings-parser/internal/env.Version=${{ github.ref }} $GITHUB_SHA\"" \
go build $LDFLAGS -o $OUTPUT_FILE_NAME ${{ matrix.path-to-build }}
sha256sum $OUTPUT_FILE_NAME > $OUTPUT_FILE_NAME.checksum
- name: Print file output of the binary file that was built
Expand Down

0 comments on commit 6a778d0

Please sign in to comment.