mirror of
https://github.com/neilotoole/sq.git
synced 2024-12-20 06:31:32 +03:00
98 lines
1.7 KiB
YAML
98 lines
1.7 KiB
YAML
name: Go
|
|
on: [push]
|
|
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
os: [ macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- name: Set up Go 1.14
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: 1.14
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Build
|
|
run: go build -v .
|
|
|
|
|
|
|
|
#
|
|
#
|
|
# build-macos:
|
|
# name: Build macOS
|
|
# runs-on: macos-latest
|
|
#
|
|
# steps:
|
|
# - name: Set up Go 1.14
|
|
# uses: actions/setup-go@v1
|
|
# with:
|
|
# go-version: 1.14
|
|
# id: go
|
|
#
|
|
# - name: Check out code into the Go module directory
|
|
# uses: actions/checkout@v2
|
|
#
|
|
# - name: Get dependencies
|
|
# run: |
|
|
# go get -v -t -d ./...
|
|
#
|
|
# - name: Build
|
|
# run: go build -v .
|
|
#
|
|
#
|
|
# build-linux:
|
|
# name: Build Linux
|
|
# runs-on: ubuntu-latest
|
|
#
|
|
# steps:
|
|
# - name: Set up Go 1.14
|
|
# uses: actions/setup-go@v1
|
|
# with:
|
|
# go-version: 1.14
|
|
# id: go
|
|
#
|
|
# - name: Check out code into the Go module directory
|
|
# uses: actions/checkout@v2
|
|
#
|
|
# - name: Get dependencies
|
|
# run: |
|
|
# go get -v -t -d ./...
|
|
#
|
|
# - name: Build
|
|
# run: go build -v .
|
|
#
|
|
# build-windows:
|
|
# name: Build Windows
|
|
# runs-on: windows-latest
|
|
#
|
|
# steps:
|
|
# - name: Set up Go 1.14
|
|
# uses: actions/setup-go@v1
|
|
# with:
|
|
# go-version: 1.14
|
|
# id: go
|
|
#
|
|
# - name: Check out code into the Go module directory
|
|
# uses: actions/checkout@v2
|
|
#
|
|
# - name: Get dependencies
|
|
# run: |
|
|
# go get -v -t -d ./...
|
|
#
|
|
# - name: Build
|
|
# run: go build -v .
|
|
#
|