forked from TrueCloudLab/neoneo-go
.github: add job to build binaries on Windows
This commit is contained in:
parent
ebd128ee79
commit
7770535d4f
1 changed files with 29 additions and 3 deletions
32
.github/workflows/run_tests.yml
vendored
32
.github/workflows/run_tests.yml
vendored
|
@ -129,8 +129,8 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test -v -race ./...
|
run: go test -v -race ./...
|
||||||
|
|
||||||
build_cli:
|
build_cli_ubuntu:
|
||||||
name: Build CLI
|
name: Build CLI (Ubuntu)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -155,8 +155,34 @@ jobs:
|
||||||
- name: Build CLI
|
- name: Build CLI
|
||||||
run: make build
|
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:
|
build_image:
|
||||||
needs: build_cli
|
needs: build_cli_ubuntu
|
||||||
name: Build Docker image
|
name: Build Docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue