2021-06-17 22:02:52 -07:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'CONTRIBUTING.md'
|
|
|
|
- 'COPYING'
|
|
|
|
- 'docs/**'
|
|
|
|
- '.github/*.md'
|
|
|
|
- '.github/FUNDING.yml'
|
|
|
|
|
|
|
|
name: Build Code
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
goarch: [amd64]
|
|
|
|
include:
|
|
|
|
- os: ubuntu-latest
|
2021-09-12 05:16:35 -07:00
|
|
|
goarch: arm64
|
2021-09-14 13:30:42 -07:00
|
|
|
- os: ubuntu-latest
|
|
|
|
goarch: arm
|
2021-06-17 22:02:52 -07:00
|
|
|
- os: windows-latest
|
|
|
|
goarch: 386
|
2021-09-09 22:25:12 -07:00
|
|
|
- os: windows-latest
|
|
|
|
goarch: arm64
|
2021-06-17 22:02:52 -07:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ${{ github.workspace }}/src
|
|
|
|
steps:
|
|
|
|
- name: Install Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-09-01 04:23:21 -07:00
|
|
|
go-version: 1.17
|
2021-06-17 22:02:52 -07:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
|
|
run: go build
|
|
|
|
env:
|
|
|
|
GOARCH: ${{ matrix.goarch }}
|