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
db75402a
Commit
db75402a
authored
Mar 27, 2024
by
Michael Yang
Browse files
mangle arch
parent
1e85a140
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
.github/workflows/test.yaml
.github/workflows/test.yaml
+24
-12
No files found.
.github/workflows/test.yaml
View file @
db75402a
...
@@ -153,17 +153,23 @@ jobs:
...
@@ -153,17 +153,23 @@ jobs:
go-version
:
'
1.22'
go-version
:
'
1.22'
cache
:
false
cache
:
false
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
case ${{ matrix.arch }} in
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
amd64) echo ARCH=x86_64 ;;
arm64) echo ARCH=arm64 ;;
esac >>$GITHUB_ENV
shell
:
bash
-
run
:
|
mkdir -p llm/llama.cpp/build/linux/$ARCH/stub/lib/
touch llm/llama.cpp/build/linux/$ARCH/stub/lib/stub.so
if
:
${{ startsWith(matrix.os, 'ubuntu-') }}
if
:
${{ startsWith(matrix.os, 'ubuntu-') }}
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/darwin/$
{{ matrix.arch }}
/stub/lib/
mkdir -p llm/llama.cpp/build/darwin/$
ARCH
/stub/lib/
touch llm/llama.cpp/build/darwin/$
{{ matrix.arch }}
/stub/lib/stub.dylib
touch llm/llama.cpp/build/darwin/$
ARCH
/stub/lib/stub.dylib
touch llm/llama.cpp/ggml-metal.metal
touch llm/llama.cpp/ggml-metal.metal
if
:
${{ startsWith(matrix.os, 'macos-') }}
if
:
${{ startsWith(matrix.os, 'macos-') }}
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/windows/$
{{ matrix.arch }}
/stub/lib/
mkdir -p llm/llama.cpp/build/windows/$
ARCH
/stub/lib/
touch llm/llama.cpp/build/windows/$
{{ matrix.arch }}
/stub/lib/stub.dll
touch llm/llama.cpp/build/windows/$
ARCH
/stub/lib/stub.dll
if
:
${{ startsWith(matrix.os, 'windows-') }}
if
:
${{ startsWith(matrix.os, 'windows-') }}
-
uses
:
golangci/golangci-lint-action@v3
-
uses
:
golangci/golangci-lint-action@v3
test
:
test
:
...
@@ -190,17 +196,23 @@ jobs:
...
@@ -190,17 +196,23 @@ jobs:
cache
:
true
cache
:
true
-
run
:
go get
-
run
:
go get
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
case ${{ matrix.arch }} in
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
amd64) echo ARCH=x86_64 ;;
arm64) echo ARCH=arm64 ;;
esac >>$GITHUB_ENV
shell
:
bash
-
run
:
|
mkdir -p llm/llama.cpp/build/linux/$ARCH/stub/lib/
touch llm/llama.cpp/build/linux/$ARCH/stub/lib/stub.so
if
:
${{ startsWith(matrix.os, 'ubuntu-') }}
if
:
${{ startsWith(matrix.os, 'ubuntu-') }}
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/darwin/$
{{ matrix.arch }}
/stub/lib/
mkdir -p llm/llama.cpp/build/darwin/$
ARCH
/stub/lib/
touch llm/llama.cpp/build/darwin/$
{{ matrix.arch }}
/stub/lib/stub.dylib
touch llm/llama.cpp/build/darwin/$
ARCH
/stub/lib/stub.dylib
touch llm/llama.cpp/ggml-metal.metal
touch llm/llama.cpp/ggml-metal.metal
if
:
${{ startsWith(matrix.os, 'macos-') }}
if
:
${{ startsWith(matrix.os, 'macos-') }}
-
run
:
|
-
run
:
|
mkdir -p llm/llama.cpp/build/windows/$
{{ matrix.arch }}
/stub/lib/
mkdir -p llm/llama.cpp/build/windows/$
ARCH
/stub/lib/
touch llm/llama.cpp/build/windows/$
{{ matrix.arch }}
/stub/lib/stub.dll
touch llm/llama.cpp/build/windows/$
ARCH
/stub/lib/stub.dll
if
:
${{ startsWith(matrix.os, 'windows-') }}
if
:
${{ startsWith(matrix.os, 'windows-') }}
-
run
:
go build
-
run
:
go build
-
run
:
go test -v ./...
-
run
:
go test -v ./...
...
...
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