From c842416a9a27859df574f6bb04c7df6cbb3348d3 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 7 Jul 2024 21:39:22 +0800 Subject: [PATCH] Add pack-lib tests --- .github/workflows/test-pack-lib.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-pack-lib.yml b/.github/workflows/test-pack-lib.yml index 2c9c367c..f09b0398 100644 --- a/.github/workflows/test-pack-lib.yml +++ b/.github/workflows/test-pack-lib.yml @@ -77,9 +77,14 @@ jobs: - run: bin/spc doctor --auto-fix - - run: bin/spc download --for-libs=${{ matrix.lib }} --debug --retry=5 --shallow-clone + - run: bin/spc download --for-libs="${{ matrix.lib }}" --debug --retry=5 --shallow-clone - - run: bin/spc dev:pack-lib --debug ${{ matrix.lib }} + - name: "Download pre-built pkg-config for *nix if possible" + if: matrix.os.name == 'linux' || matrix.os.name == 'darwin' + run: bin/spc download --for-libs="pkg-config" --debug --retry=5 --shallow-clone --prefer-pre-built + + - if: matrix.os.name != 'windows' || matrix.lib != 'pkg-config' + run: bin/spc dev:pack-lib --debug ${{ matrix.lib }} - name: "Upload packed lib (${{ matrix.lib }} for ${{ matrix.os.name }}-${{ matrix.os.arch }})" uses: actions/upload-artifact@v2