2021-07-18 02:27:57 +08:00
|
|
|
name: windows
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: build
|
|
|
|
runs-on: [ windows-latest ]
|
|
|
|
steps:
|
|
|
|
|
2024-08-23 03:20:08 +08:00
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2021-07-18 02:27:57 +08:00
|
|
|
- name: Set up Go
|
2023-12-12 04:32:54 +08:00
|
|
|
uses: actions/setup-go@v5
|
2021-07-18 02:27:57 +08:00
|
|
|
with:
|
2023-02-20 02:18:54 +08:00
|
|
|
go-version: 1.18
|
2021-07-18 02:27:57 +08:00
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: go get -v -t -d ./...
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v .
|
|
|
|
|
|
|
|
- name: Test
|
2023-02-20 02:18:54 +08:00
|
|
|
run: go test ./...
|