Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix build
Michael Yang669dc31cf33a
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yamlindex e9221bdfd..dd354463a 100644--- a/.github/workflows/release.yaml+++ b/.github/workflows/release.yaml@@ -273,6 +273,8 @@ jobs:merge-multiple: true- run: |& .\scripts\build_windows.ps1 gatherDependencies sign buildInstaller distZip+ env:+ KEY_CONTAINER: ${{ vars.KEY_CONTAINER }}- uses: actions/upload-artifact@v4with:name: dist-windows@@ -286,10 +288,13 @@ jobs:include:- os: linuxarch: amd64- targets: 'archive rocm'+ target: archive+ - os: linux+ arch: amd64+ target: rocm- os: linuxarch: arm64- targets: archive+ target: archiveruns-on: ${{ matrix.arch == 'arm64' && format('{0}-{1}', matrix.os, matrix.arch) || matrix.os }}environment: releaseneeds: setup-environment@@ -300,15 +305,30 @@ jobs:- uses: docker/setup-buildx-action@v3- run: |sudo apt-get update && sudo apt-get install pigz- for TARGET in ${{ matrix.targets }}; do docker buildx build --platform $PLATFORM --target $TARGET --build-arg GOFLAGS --build-arg CGO_CFLAGS --build-arg CGO_CXXFLAGS --output type=local,dest=dist/$PLATFORM .; done- tar c -C dist/$PLATFORM . | pigz -9cv >dist/ollama-${PLATFORM//\//-}.tgz+ docker buildx build --platform $PLATFORM --target ${{ matrix.target }} --build-arg GOFLAGS --build-arg CGO_CFLAGS --build-arg CGO_CXXFLAGS --output type=local,dest=dist/$PLATFORM .++ for COMPONENTS in dist/$PLATFORM/* dist/$PLATFORM/lib/ollama/*; do+ if [ -d "$COMPONENTS" ]; then+ case "$COMPONENTS" in+ */bin) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}.tar.in ;;+ */lib/ollama) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}.tar.in;;+ */lib/ollama/cuda_v11) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}.tar.in;;+ */lib/ollama/cuda_v12) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}.tar.in;;+ */lib/ollama/cuda_jetpack5) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}-jetpack5.tar.in ;;+ */lib/ollama/cuda_jetpack6) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}-jetpack6.tar.in ;;+ */lib/ollama/rocm) echo $COMPONENTS >>dist/ollama-${PLATFORM//\//-}-rocm.tar.in ;;+ esac+ fi+ done++ for ARCHIVE in dist/*.tar.in; do tar c -T $ARCHIVE --strip-components 3 | pigz -9cv >${ARCHIVE//.*/}.tgz; doneenv:PLATFORM: ${{ matrix.os }}/${{ matrix.arch }}- uses: actions/upload-artifact@v4with:name: dist-${{ matrix.os }}-${{ matrix.arch }}path: |- dist/ollama-${{ matrix.os }}-${{ matrix.arch }}.tgz+ dist/*.tgzdocker-build:strategy:@@ -320,7 +340,7 @@ jobs:CGO_CFLAGSCGO_CXXFLAGSGOFLAGS- - flavor: 'latest=false,suffix=rocm'+ - flavor: 'latest=false,suffix=-rocm'platforms: linux/amd64build-args: |CGO_CFLAGSdiff --git a/scripts/build_darwin.sh b/scripts/build_darwin.shindex 1f1442f34..0beb765ea 100755--- a/scripts/build_darwin.sh+++ b/scripts/build_darwin.sh@@ -52,7 +52,7 @@ _sign_darwin() {# create a temporary zip for notarizationTEMP=$(mktemp -u).zipditto -c -k --keepParent dist/darwin/ollama "$TEMP"- xcrun notarytool submit dist/darwin/temp.zip --wait --timeout 10m --apple-id $APPLE_ID --password $APPLE_PASSWORD --team-id $APPLE_TEAM_ID+ xcrun notarytool submit "$TEMP" --wait --timeout 10m --apple-id $APPLE_ID --password $APPLE_PASSWORD --team-id $APPLE_TEAM_IDrm -f "$TEMP"fi