Skip to content

Commit

Permalink
Tweak compiler config
Browse files Browse the repository at this point in the history
  • Loading branch information
bakks committed Oct 27, 2022
1 parent 23aff25 commit e0b6562
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ name: goreleaser

on:
push:
# run only against tags
tags:
- '*'
- 'v*'

permissions:
contents: write
# packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
container:
image: goreleaser/goreleaser-cross
steps:
- uses: actions/checkout@v3
with:
Expand Down
20 changes: 6 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ builds:
- amd64
env:
- CGO_ENABLED=1
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
- CC=clang
- CXX=clang++
- 'CGO_CFLAGS=" -Wno-error=unused-command-line-argument "'
- 'CGO_LDFLAGS=" -Wno-error=unused-command-line-argument "'
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}} -Wno-error=unused-command-line-argument
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}}

- id: darwin-arm64
main: ./
Expand All @@ -28,16 +24,12 @@ builds:
- arm64
env:
- CGO_ENABLED=1
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
- CC=clang
- CXX=clang++
- 'CGO_CFLAGS=" -Wno-error=unused-command-line-argument "'
- 'CGO_LDFLAGS=" -Wno-error=unused-command-line-argument "'
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}} -Wno-error=unused-command-line-argument
- -s -w -X main.version={{.Version}} -X main.arch={{.Arch}}


release:
Expand Down

0 comments on commit e0b6562

Please sign in to comment.