Skip to content

Commit

Permalink
fix: Fix linux build with CGO_ENABLED=0 (#311)
Browse files Browse the repository at this point in the history
Fix linux build with CGO_ENABLED=0
  • Loading branch information
dbolson authored May 31, 2024
1 parent 699a980 commit 6de74ca
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }}
args: release ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }} --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ inputs.token }}
HOMEBREW_DEPLOY_KEY: ${{ inputs.homebrew-gh-secret }}
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@ on:
workflow_dispatch:
inputs:
dry-run:
default: true
description: 'Skip publishing to DockerHub and Homebrew'
type: boolean
required: false
type: boolean
dry-run-npm:
default: true
description: 'Skip publishing to npm'
required: false
type: boolean
tag:
description: 'Tag to upload binary artifacts to'
type: string
required: true
type: string

jobs:
release-ldcli:
Expand Down Expand Up @@ -42,6 +47,7 @@ jobs:

release-ldcli-npm:
runs-on: ubuntu-latest
if: ${{ inputs.dry-run-npm == false }}
needs: ['release-ldcli']
permissions:
actions: read
Expand Down
12 changes: 11 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# .goreleaser.yaml
builds:
- id: ldcli
binary: ldcli
goos:
- linux
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
dockers:
# AMD64
- image_templates:
Expand Down

0 comments on commit 6de74ca

Please sign in to comment.