From 67b4678b2d03b40cab82bedb40d89b617af9c3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=90?= <84855512@qq.com> Date: Sat, 21 Sep 2024 21:55:36 +0800 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 01c5ecb..53d8616 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 下运行