2020-08-24 09:51:44 -04:00
|
|
|
name: build
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2020-10-23 07:18:07 -04:00
|
|
|
go-version: [~1.13, ^1]
|
2020-10-13 22:45:55 -04:00
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
2020-08-24 09:51:44 -04:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
env:
|
|
|
|
GO111MODULE: "on"
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
2022-04-11 05:47:38 -04:00
|
|
|
uses: actions/setup-go@v3
|
2020-08-24 09:51:44 -04:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
|
|
|
|
- name: Checkout code
|
2022-03-02 04:13:39 -05:00
|
|
|
uses: actions/checkout@v3
|
2020-08-24 09:51:44 -04:00
|
|
|
|
|
|
|
- name: Download Go modules
|
|
|
|
run: go mod download
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v ./...
|
2020-11-03 18:55:57 -05:00
|
|
|
|
|
|
|
- name: Build examples
|
|
|
|
run: go build -v ./...
|
|
|
|
working-directory: ./examples
|
|
|
|
|
|
|
|
- name: Build tutorials
|
|
|
|
run: go build -v ./...
|
|
|
|
working-directory: ./tutorials
|