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
1e85a140
"vscode:/vscode.git/clone" did not exist on "6128f7cff5e61517f69fafa6aec148d8d40657cf"
Commit
1e85a140
authored
Mar 27, 2024
by
Michael Yang
Browse files
only generate on changes to llm subdirectory
parent
c363282f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
.github/workflows/test.yaml
.github/workflows/test.yaml
+18
-7
No files found.
.github/workflows/test.yaml
View file @
1e85a140
...
...
@@ -23,11 +23,14 @@ jobs:
}
{
echo GENERATE_CUDA=$(changed llm)
echo GENERATE_ROCM=$(changed llm)
echo GENERATE=$(changed llm/)
echo GENERATE_CUDA=$(changed llm/)
echo GENERATE_ROCM=$(changed llm/)
} >>$GITHUB_OUTPUT
generate
:
needs
:
[
changes
]
if
:
${{ needs.changes.outputs.GENERATE == 'True' }}
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
...
...
@@ -164,7 +167,6 @@ jobs:
if
:
${{ startsWith(matrix.os, 'windows-') }}
-
uses
:
golangci/golangci-lint-action@v3
test
:
needs
:
generate
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
...
...
@@ -187,10 +189,19 @@ jobs:
go-version
:
'
1.22'
cache
:
true
-
run
:
go get
-
uses
:
actions/download-artifact@v4
with
:
name
:
${{ matrix.os }}-${{ matrix.arch }}-libraries
path
:
llm/llama.cpp/build
-
run
:
|
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
if
:
${{ startsWith(matrix.os, 'ubuntu-') }}
-
run
:
|
mkdir -p llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/
touch llm/llama.cpp/build/darwin/${{ matrix.arch }}/stub/lib/stub.dylib
touch llm/llama.cpp/ggml-metal.metal
if
:
${{ startsWith(matrix.os, 'macos-') }}
-
run
:
|
mkdir -p llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/
touch llm/llama.cpp/build/windows/${{ matrix.arch }}/stub/lib/stub.dll
if
:
${{ startsWith(matrix.os, 'windows-') }}
-
run
:
go build
-
run
:
go test -v ./...
-
uses
:
actions/upload-artifact@v4
...
...
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