Skip to content

Commit

Permalink
fix(release): enable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
EverythingSuckz committed Nov 29, 2023
1 parent b0f4f56 commit a5a78d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Goreleaser

on:
workflow_dispatch:
inputs:
goReleaserConfig:
description: 'Configuration ENV for goreleaser'
required: false
default: 'CGO_ENABLED=1'
push:
tags:
- "*"
Expand Down
15 changes: 6 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
version: 1

project_name: TG-FileStreamBot

env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
- go generate ./...

builds:
- id: fsb-main
main: ./cmd/fsb
- main: ./cmd/fsb
env:
- CGO_ENABLED=0
- CGO_ENABLED=1
flags: -tags=musl
ldflags: "-linkmode=external -extldflags -static -s -w"
binary: fsb
goos:
- linux
Expand All @@ -20,10 +21,6 @@ builds:
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: 386
no_main_check: true

archives:
- format: tar.gz
Expand Down

0 comments on commit a5a78d1

Please sign in to comment.