From b1d2f3ef9c3fc071bfffab5ade482c37ce95e3b3 Mon Sep 17 00:00:00 2001 From: guillaume Date: Wed, 27 Jul 2022 13:42:23 +0200 Subject: [PATCH 1/2] Copy main path for each arch Signed-off-by: guillaume --- .goreleaser.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index c3bbc03..8770db4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,8 @@ project_name: cuelsp builds: - - main: ./cmd/cuelsp/ - id: darwin-amd64 + main: ./cmd/cuelsp/ env: - CGO_ENABLED=1 - CC=o64-clang @@ -12,6 +12,7 @@ builds: goarch: - amd64 - id: darwin-arm64 + main: ./cmd/cuelsp/ env: - CGO_ENABLED=1 - CC=oa64-clang @@ -21,6 +22,7 @@ builds: goarch: - arm64 - id: linux-arm64 + main: ./cmd/cuelsp/ env: - CGO_ENABLED=1 - CC=aarch64-linux-gnu-gcc @@ -30,6 +32,7 @@ builds: goarch: - arm64 - id: linux-amd64 + main: ./cmd/cuelsp/ env: - CGO_ENABLED=1 - CC=gcc @@ -39,6 +42,7 @@ builds: goarch: - amd64 - id: windows-amd64 + main: ./cmd/cuelsp/ env: - CGO_ENABLED=1 - CC=x86_64-w64-mingw32-gcc From f47ca92693689936e348fc61f72f81bf7fd8a56d Mon Sep 17 00:00:00 2001 From: guillaume Date: Wed, 27 Jul 2022 13:45:21 +0200 Subject: [PATCH 2/2] Finish cleaning up from CGO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As semantic tokenization has been removed, these CGO options are not necessary anymore Co-authored-by: "Tanguy ⧓ Herrmann " Signed-off-by: guillaume --- .goreleaser.yaml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8770db4..092c047 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,50 +3,30 @@ project_name: cuelsp builds: - id: darwin-amd64 main: ./cmd/cuelsp/ - env: - - CGO_ENABLED=1 - - CC=o64-clang - - CCX=o64-clang++ goos: - darwin goarch: - amd64 - id: darwin-arm64 main: ./cmd/cuelsp/ - env: - - CGO_ENABLED=1 - - CC=oa64-clang - - CCX=oa64-clang++ goos: - darwin goarch: - arm64 - id: linux-arm64 main: ./cmd/cuelsp/ - env: - - CGO_ENABLED=1 - - CC=aarch64-linux-gnu-gcc - - CCX=aarch64-linux-gnu-g++ goos: - linux goarch: - arm64 - id: linux-amd64 main: ./cmd/cuelsp/ - env: - - CGO_ENABLED=1 - - CC=gcc - - CCX=g++ goos: - linux goarch: - amd64 - id: windows-amd64 main: ./cmd/cuelsp/ - env: - - CGO_ENABLED=1 - - CC=x86_64-w64-mingw32-gcc - - CCX=x86_64-w64-mingw32-g++ goos: - windows goarch: