Skip to content

Use setup-go@v4 to use stable/oldstable aliases #288

Use setup-go@v4 to use stable/oldstable aliases

Use setup-go@v4 to use stable/oldstable aliases #288

Workflow file for this run

name: Go
on: [push, pull_request]
jobs:
build:
name: Build/Test
runs-on: ${{ matrix.os }}
timeout-minutes: 3
strategy:
matrix:
go-version: [stable, oldstable]
os: [ubuntu-latest, windows-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./... --timeout 60s
- name: Meta Tests
run: go test -v -tags ci ./ci --timeout 60s
if: ${{ runner.os == 'Linux' }}
- name: Cross test for i386
run: env GOOS=linux GOARCH=386 go test -v ./... --timeout 60s
if: ${{ runner.os == 'Linux' }}
- name: Cross compile for arm (RPI)
run: env GOOS=linux GOARCH=arm GOARM=5 go build -v ./...
if: ${{ runner.os == 'Linux' }}