From 4bedb00abc66867a16e5fc766061a8a90fc442b7 Mon Sep 17 00:00:00 2001 From: Declan Moran Date: Mon, 13 May 2024 15:34:01 +0200 Subject: [PATCH] fix: old asset being cached --- .github/workflows/ci.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ef8e3beb9..2dbfdcc20 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -51,16 +51,27 @@ jobs: asset_name="${{ env.tag_name }}.zip" echo "Looking for asset: $asset_name" + # Ensure no stale asset file is present + rm -f "$asset_name" + # Use GitHub CLI to download the asset gh release download "${{ env.tag_name }}" \ --pattern "$asset_name" \ --dir . + # List files to verify the correct asset is downloaded + echo "Downloaded files:" + ls -l + - name: Extract the archive run: | asset_name="${{ env.tag_name }}.zip" unzip "$asset_name" -d extracted + # List contents to ensure cache is not affecting the content + echo "Contents of extracted directory:" + ls -lR extracted/ + - name: Check for the expected directory structure run: | # Expected root directory inside the extracted folder @@ -89,9 +100,7 @@ jobs: echo "All specified directories exist." - - - # extracted/{release_name} + # extracted/{release_name} # include # boost/ # libs @@ -112,4 +121,3 @@ jobs: # exit 1 # fi -