Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
f9d2d891
Commit
f9d2d891
authored
Feb 03, 2025
by
Michael Yang
Browse files
fix linux archive
parent
669dc31c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
.github/workflows/release.yaml
.github/workflows/release.yaml
+4
-9
scripts/build_darwin.sh
scripts/build_darwin.sh
+3
-1
No files found.
.github/workflows/release.yaml
View file @
f9d2d891
...
...
@@ -326,7 +326,7 @@ jobs:
PLATFORM
:
${{ matrix.os }}/${{ matrix.arch }}
-
uses
:
actions/upload-artifact@v4
with
:
name
:
dist-${{ matrix.os }}-${{ matrix.arch }}
name
:
dist-${{ matrix.os }}-${{ matrix.arch }}
-${{ matrix.target }}
path
:
|
dist/*.tgz
...
...
@@ -391,9 +391,6 @@ jobs:
GH_TOKEN
:
${{ github.token }}
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Set Version
shell
:
bash
run
:
|
-
uses
:
actions/download-artifact@v4
with
:
name
:
dist-darwin
...
...
@@ -406,11 +403,9 @@ jobs:
with
:
pattern
:
dist-linux-*
path
:
dist
-
run
:
|
ls -lh dist/
(cd dist; find . -type f | xargs sha256sum > ../sha256sum.txt)
mv sha256sum.txt dist/
cat dist/sha256sum.txt
merge-multiple
:
true
-
run
:
find . -type f -not -name 'sha256sum.txt' | xargs sha256sum | tee sha256sum.txt
working-directory
:
dist
-
name
:
Create or update Release
run
:
|
RELEASE_VERSION=$(echo ${GITHUB_REF_NAME} | cut -f1 -d-)"
...
...
scripts/build_darwin.sh
View file @
f9d2d891
...
...
@@ -34,7 +34,8 @@ _build_darwin() {
-DCMAKE_OSX_ARCHITECTURES
=
x86_64
\
-DCMAKE_OSX_DEPLOYMENT_TARGET
=
11.3
cmake
--build
build/darwin-
$ARCH
--target
ggml-cpu
-j
install
build/darwin-
$ARCH
/lib/ollama/
*
.
{
dylib,so
}
$INSTALL_PREFIX
install
-d
$INSTALL_PREFIX
/lib/ollama
install
build/darwin-
$ARCH
/lib/ollama/
*
.
{
dylib,so
}
$INSTALL_PREFIX
/lib/ollama
fi
done
}
...
...
@@ -43,6 +44,7 @@ _sign_darwin() {
status
"Creating universal binary..."
mkdir
-p
dist/darwin
lipo
-create
-output
dist/darwin/ollama dist/darwin-
*
/ollama
chmod
+x dist/darwin/ollama
if
[
-n
"
$APPLE_IDENTITY
"
]
;
then
for
F
in
dist/darwin/ollama dist/darwin-amd64/lib/ollama/
*
;
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment