go-fastdfs/.github/workflows/main.yml
2023-04-09 12:12:56 +08:00

25 lines
537 B
YAML

on: [push, pull_request]
name: build
jobs:
test:
env:
CGO_ENABLED: 0
strategy:
matrix:
go-version: [1.17.x,1.18.x,1.19.x,1.20.x]
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
go mod tidy
go mod vendor
go build