go-fastdfs/.github/workflows/main.yml

25 lines
537 B
YAML
Raw Normal View History

2021-05-17 13:39:20 +08:00
on: [push, pull_request]
name: build
jobs:
test:
env:
CGO_ENABLED: 0
strategy:
matrix:
2023-04-09 12:12:56 +08:00
go-version: [1.17.x,1.18.x,1.19.x,1.20.x]
2021-05-17 13:39:20 +08:00
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