mirror of
https://gitee.com/sjqzhang/go-fastdfs.git
synced 2024-11-29 17:57:41 +08:00
25 lines
537 B
YAML
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
|
|
|