Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
ci: fix linux archive (#8862)
Michael Yang1c198977ecdd
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yamlindex 5267cbe0d..ca83a429b 100644--- a/.github/workflows/release.yaml+++ b/.github/workflows/release.yaml@@ -303,24 +303,33 @@ jobs:steps:- uses: actions/checkout@v4- uses: docker/setup-buildx-action@v3+ - uses: docker/build-push-action@v6+ with:+ context: .+ platforms: ${{ matrix.os }}/${{ matrix.arch }}+ target: ${{ matrix.target }}+ build-args: |+ GOFLAGS=${{ env.GOFLAGS }}+ CGO_CFLAGS=${{ env.CGO_CFLAGS }}+ CGO_CXXFLAGS=${{ env.CGO_CXXFLAGS }}+ outputs: type=local,dest=dist/${{ matrix.os }}-${{ matrix.arch }}+ cache-from: type=registry,ref=ollama/ollama:latest+ cache-to: type=inline- run: |- sudo apt-get update && sudo apt-get install pigz- docker buildx build --platform ${{ matrix.os }}/${{ matrix.arch }} --target ${{ matrix.target }} --build-arg GOFLAGS --build-arg CGO_CFLAGS --build-arg CGO_CXXFLAGS --output type=local,dest=dist/${{ matrix.os }}-${{ matrix.arch }} .- - run: |- find . -mindepth 1 -maxdepth 3 -type d | while read COMPONENT; do- case "$COMPONENT" in- ./bin) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;- ./lib/ollama) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;- ./lib/ollama/cuda_v11) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;- ./lib/ollama/cuda_v12) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;- ./lib/ollama/cuda_jetpack5) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-jetpack5.tar.in ;;- ./lib/ollama/cuda_jetpack6) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-jetpack6.tar.in ;;- ./lib/ollama/rocm) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-rocm.tar.in ;;- esac+ for COMPONENT in bin/* lib/ollama/*; do+ case "$COMPONENT" in+ bin/ollama) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;+ lib/ollama/*.so) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;+ lib/ollama/cuda_v11) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;+ lib/ollama/cuda_v12) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}.tar.in ;;+ lib/ollama/cuda_jetpack5) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-jetpack5.tar.in ;;+ lib/ollama/cuda_jetpack6) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-jetpack6.tar.in ;;+ lib/ollama/rocm) echo $COMPONENT >>ollama-${{ matrix.os }}-${{ matrix.arch }}-rocm.tar.in ;;+ esacdone- working-directory: dist/${{ matrix.os }}-${matrix.arch }}+ working-directory: dist/${{ matrix.os }}-${{ matrix.arch }}- run: |- for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE | pigz -9vc >$(basenme ${ARCHIVE//.*/}.tgz); done+ for ARCHIVE in dist/${{ matrix.os }}-${{ matrix.arch }}/*.tar.in; do tar c -C dist/${{ matrix.os }}-${{ matrix.arch }} -T $ARCHIVE | pigz -9vc >$(basename ${ARCHIVE//.*/}.tgz); done- uses: actions/upload-artifact@v4with:name: dist-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.target }}@@ -359,7 +368,7 @@ jobs:GOFLAGS: ${{ needs.setup-environment.outputs.GOFLAGS }}steps:- uses: actions/checkout@v4- - uses: docker/setup-buildx-action@v2+ - uses: docker/setup-buildx-action@v3- uses: docker/login-action@v3with:username: ${{ vars.DOCKER_USER }}