From 9ad62958aae1e3b0d41f8d9e0bc80045ab361fcd Mon Sep 17 00:00:00 2001 From: Akash Date: Thu, 7 Nov 2024 17:05:07 +0530 Subject: [PATCH] Always pull latest release --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6bab86f..14d3e74 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,7 +36,7 @@ jobs: - name: Get latest version of libvips run: | - VIPS_LATEST_RELEASE="https://github.com/libvips/libvips/releases/download/v8.13.0/vips-8.13.0.tar.gz" + VIPS_LATEST_RELEASE=$(curl -L -s https://api.github.com/repos/libvips/libvips/releases/latest | grep -o -E "https://(.*)/vips-(.*).tar.xz" | head -1) echo "VIPS_LATEST_RELEASE=${VIPS_LATEST_RELEASE}" >> $GITHUB_ENV - name: Cache libvips artifacts @@ -50,7 +50,7 @@ jobs: if: steps.vips-cache.outputs.cache-hit != 'true' run: | mkdir vips - curl -s -L "${VIPS_LATEST_RELEASE}" | tar xz -C ./vips --strip-components=1 + curl -s -L "${VIPS_LATEST_RELEASE}" | tar xf -C ./vips --strip-components=1 cd vips ./configure make