diff --git a/.github/workflows/bcny-firebase.yml b/.github/workflows/bcny-firebase.yml index 350d6d584..4f00dc796 100644 --- a/.github/workflows/bcny-firebase.yml +++ b/.github/workflows/bcny-firebase.yml @@ -121,7 +121,25 @@ jobs: -D FLATBUFFERS_FLATC_EXECUTABLE=${{ github.workspace }}/BinaryCache/flatbuffers/Release/flatc.exe - name: compress binarycache - run: tar --ignore-failed-read -cvf ${{ github.workspace }}/binary_cache.tar ${{ github.workspace }}/BinaryCache/firebase + run: | + # Define the directory to archive + $directory = "${{ github.workspace }}\BinaryCache\firebase" + + # Get all files in the directory recursively + $files = Get-ChildItem -Path $directory -Recurse -File + + # Filter out files that cannot be read + $readableFiles = $files | Where-Object { Test-Path $_.FullName -PathType Leaf } + + # Create a temporary file to list readable files + $tempFileList = [System.IO.Path]::GetTempFileName() + $readableFiles | ForEach-Object { $_.FullName } | Set-Content $tempFileList + + # Create the tar archive + tar -cf ${{ github.workspace }}/binary_cache.tar -T $tempFileList + + # Clean up the temporary file + Remove-Item $tempFileList - name: upload binarycache uses: actions/upload-artifact@v4