diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 7d94f8a..5306aef 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -76,8 +76,7 @@ jobs: - name: 安装目标平台 sharp if: matrix.arch == 'x64' run: | - yarn add --ignore-scripts @img/sharp-darwin-x64 - ls node_modules/@img/ + npm install --no-save --ignore-scripts --force @img/sharp-darwin-x64 - name: 打包 macOS 安装程序 run: yarn dist:mac --${{ matrix.arch }} @@ -119,6 +118,11 @@ jobs: env: npm_config_arch: ${{ matrix.arch }} + - name: 安装目标平台 sharp + if: matrix.arch == 'arm64' + run: | + npm install --no-save --ignore-scripts --force @img/sharp-linux-arm64 + - name: 打包 Linux 安装程序 run: yarn dist:linux --${{ matrix.arch }} env: @@ -142,10 +146,10 @@ jobs: - name: 输出构建结果 run: | echo "===== 构建测试完成 =====" - echo "Windows x64: ${{ needs.build-Windows.result }}" - echo "Windows arm64: ${{ needs.build-Windows.result }}" + echo "Windows: ${{ needs.build-Windows.result }}" echo "macOS Apple Silicon: ${{ needs.build-macOS.result }}" echo "macOS Intel: ${{ needs.build-macOS.result }}" echo "Linux x64: ${{ needs.build-Linux.result }}" + echo "Linux arm64: ${{ needs.build-Linux.result }}" echo "" echo "构建产物将保留 7 天,可在 Actions 页面下载。"