From 696ca021289ee836d40a828c93eff8c2a4d18dd2 Mon Sep 17 00:00:00 2001 From: Maxence Maireaux Date: Thu, 17 Feb 2022 10:32:48 +0100 Subject: [PATCH] Add more deps for Windows build in Linux Signed-off-by: Maxence Maireaux --- .github/workflows/pr.yml | 1 + .goreleaser.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 79aa6870b..8403e5d1f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -58,6 +58,7 @@ jobs: echo 'deb http://security.ubuntu.com/ubuntu bionic-security main' | sudo tee -a /etc/apt/sources.list sudo apt update && apt-cache policy libssl1.0-dev sudo apt-get install libssl1.0-dev + - run: sudo apt install gcc-mingw-w64 -y - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 98449e4f4..9bb6049f7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -15,6 +15,7 @@ builds: - -X github.com/numary/ledger/cmd.Commit={{ .ShortCommit }} env: - CGO_ENABLED=1 + - CC=x86_64-w64-mingw32-gcc goos: - windows goarch: