From 03274a6b2f2f6bd5cb109d5aa00c9b9d183500cf Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Tue, 24 Jun 2025 18:45:01 -0700 Subject: [PATCH] ci: recombine linux amd64 binaries (#11188) Glue the rocm and archive builds back together. --- .github/workflows/release.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 32dd5e8214..f56231aa52 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -468,8 +468,18 @@ jobs: - uses: actions/download-artifact@v4 with: pattern: dist-linux-* - path: dist - merge-multiple: true + path: stage + merge-multiple: false + - name: Merge linux amd64 payload + working-directory: stage/dist-linux-amd64-archive + run: | + tar zxf ollama-linux-amd64.tgz + tar zxf ../dist-linux-amd64-rocm/ollama-linux-amd64.tgz + rm -f ollama-linux-amd64.tgz ../dist-linux-amd64-rocm/ollama-linux-amd64.tgz + tar -c -f- --owner 0 --group 0 . | pigz -9vc > ../ollama-linux-amd64.tgz + - name: Cleanup linux payloads + run: | + find stage -name ollama-linux\*.tgz -exec mv {} dist/ \; - run: find . -type f -not -name 'sha256sum.txt' | xargs sha256sum | tee sha256sum.txt working-directory: dist - name: Create or update Release