mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 10:19:32 +08:00
新增编译脚本和 github 工作流配置文件
This commit is contained in:
27
.github/workflows/verify.yml
vendored
Normal file
27
.github/workflows/verify.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Verify
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
verify:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.23'
|
||||
|
||||
- name: Install dependencies
|
||||
run: go mod download
|
||||
|
||||
- name: Build
|
||||
run: CGO_ENABLED=0 go build -v ./...
|
||||
|
||||
- name: Test
|
||||
run: CGO_ENABLED=0 go test -v ./...
|
||||
Reference in New Issue
Block a user