Update test.yml
This commit is contained in:
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
||||
matrix:
|
||||
goos: [linux, windows] # 指定要构建的操作系统
|
||||
goarch: [amd64] # 指定架构
|
||||
go_variant: [default, alpine] # 使用默认和 Alpine 版本打包 Linux
|
||||
go_variant: [default] # 使用默认和 Alpine 版本打包 Linux
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -28,7 +28,8 @@ jobs:
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.22' # 选择 Go 版本
|
||||
|
||||
- name: tidy
|
||||
run: go mod tidy
|
||||
# 如果是 Linux 或 Alpine,需要安装 SQLite 依赖
|
||||
- name: Install SQLite dependencies (Linux/Alpine)
|
||||
if: matrix.goos == 'linux' # 仅在 Linux 下运行
|
||||
|
||||
Reference in New Issue
Block a user