From 6a799a5d4747d9c847efe5c973eec963301f94c4 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 3 Mar 2023 18:09:23 -0500 Subject: [PATCH] extra fancy version --- .github/workflows/build.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bc4099e6..070a2188 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -115,9 +115,17 @@ jobs: with: name: ${{ inputs.platform }} - - name: extract bottles - # Note: unlinking needed when changing a directory to a symlink, for example in + - name: clean destination + # Note: needed when changing a directory to a symlink, for example in # https://github.com/teaxyz/pantry.extra/pull/435 + run: | + tar tzf artifacts.tgz | \ + awk '{ print length, $0 }' | \ + sort -n -s -r | \ + cut -d" " -f2- | \ + xargs rm -rf + + - name: extract bottles run: tar xzvf artifacts.tgz -C $TEA_PREFIX --recursive-unlink --unlink-first - run: pkg test ${{ inputs.projects }}