diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3ac2bb9..c3555be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,6 +12,7 @@ jobs: release: name: "Release dagger LSP" runs-on: ubuntu-latest + container: goreleaser/goreleaser-cross steps: - name: "Check out" uses: actions/checkout@v2 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 41f2f3c..0d9cea2 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,12 +1,51 @@ project_name: daggerlsp builds: - - env: + - id: darwin-amd64 + env: - CGO_ENABLED=1 + - CC=o64-clang + - CCX=o64-clang++ + goos: + - darwin + goarch: + - amd64 + - id: darwin-arm64 + env: + - CGO_ENABLED=1 + - CC=oa64-clang + - CCX=oa64-clang++ + goos: + - darwin + goarch: + - arm64 + - id: linux-arm64 + env: + - CGO_ENABLED=1 + - CC=aarch64-linux-gnu-gcc + - CCX=aarch64-linux-gnu-g++ goos: - linux + goarch: + - arm64 + - id: linux-amd64 + env: + - CGO_ENABLED=1 + - CC=gcc + - CCX=g++ + goos: + - linux + goarch: + - amd64 + - id: windows-amd64 + env: + - CGO_ENABLED=1 + - CC=x86_64-w64-mingw32-gcc + - CCX=x86_64-w64-mingw32-g++ + goos: - windows - - darwin + goarch: + - amd64 checksum: name_template: 'checksums.txt'