From 7770535d4f6df443debce076a9361056d1c6aa44 Mon Sep 17 00:00:00 2001 From: AnnaShaleva Date: Thu, 18 Nov 2021 18:48:05 +0300 Subject: [PATCH] .github: add job to build binaries on Windows --- .github/workflows/run_tests.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index bb92216d3..421580d1f 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -129,8 +129,8 @@ jobs: - name: Run tests run: go test -v -race ./... - build_cli: - name: Build CLI + build_cli_ubuntu: + name: Build CLI (Ubuntu) runs-on: ubuntu-20.04 steps: @@ -155,8 +155,34 @@ jobs: - name: Build CLI run: make build + build_cli_win: + name: Build CLI (Windows) + runs-on: windows-2019 + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Restore Go modules from cache + uses: actions/cache@v2 + with: + path: /home/runner/go/pkg/mod + key: deps-${{ hashFiles('go.sum') }} + + - name: Update Go modules + run: go mod download -json + + - name: Build CLI + run: make build + build_image: - needs: build_cli + needs: build_cli_ubuntu name: Build Docker image runs-on: ubuntu-20.04