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
Commit
1e85a140
authored
Mar 27, 2024
by
Michael Yang
Browse files
only generate on changes to llm subdirectory
parent
c363282f
Changes
1
Hide 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:
...
@@ -23,11 +23,14 @@ jobs:
}
}
{
{
echo GENERATE_CUDA=$(changed llm)
echo GENERATE=$(changed llm/)
echo GENERATE_ROCM=$(changed llm)
echo GENERATE_CUDA=$(changed llm/)
echo GENERATE_ROCM=$(changed llm/)
} >>$GITHUB_OUTPUT
} >>$GITHUB_OUTPUT
generate
:
generate
:
needs
:
[
changes
]
if
:
${{ needs.changes.outputs.GENERATE == 'True' }}
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
...
@@ -164,7 +167,6 @@ jobs:
...
@@ -164,7 +167,6 @@ jobs:
if
:
${{ startsWith(matrix.os, 'windows-') }}
if
:
${{ startsWith(matrix.os, 'windows-') }}
-
uses
:
golangci/golangci-lint-action@v3
-
uses
:
golangci/golangci-lint-action@v3
test
:
test
:
needs
:
generate
strategy
:
strategy
:
matrix
:
matrix
:
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
os
:
[
ubuntu-latest
,
macos-latest
,
windows-2019
]
...
@@ -187,10 +189,19 @@ jobs:
...
@@ -187,10 +189,19 @@ jobs:
go-version
:
'
1.22'
go-version
:
'
1.22'
cache
:
true
cache
:
true
-
run
:
go get
-
run
:
go get
-
uses
:
actions/download-artifact@v4
-
run
:
|
with
:
mkdir -p llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/
name
:
${{ matrix.os }}-${{ matrix.arch }}-libraries
touch llm/llama.cpp/build/linux/${{ matrix.arch }}/stub/lib/stub.so
path
:
llm/llama.cpp/build
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 build
-
run
:
go test -v ./...
-
run
:
go test -v ./...
-
uses
:
actions/upload-artifact@v4
-
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