From 926604d0baeb62f3360de7cb70c2980092b42f75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E8=93=9D=E5=85=94=E5=93=9F=EF=BD=9E?= <49941141+Dragon1573@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:14:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=81=E7=BB=AD=E9=9B=86=E6=88=90=EF=BC=9A?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20build.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 if 判定,前序配置中未能正确命中条件实现步骤跳过 Signed-off-by: 是蓝兔哟~ <49941141+Dragon1573@users.noreply.github.com> --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 41f908e..7dcc7ed 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -21,7 +21,7 @@ jobs: - name: 检出仓库 uses: actions/checkout@v4 - name: 安装 MSVC - if: ${{ matrix.os }} == 'windows' + if: contains(matrix.os, 'windows') # Runner 模式预装 MinGW-w64 用于编译 NumPy # 这还只是实验性质的功能,当 PyInstaller 打包时会崩溃 # 我们需要安装配置 MSVC ,让 PDM 用它去编译构建 NumPy