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
278e25ea
Unverified
Commit
278e25ea
authored
May 30, 2024
by
Michael Yang
Committed by
GitHub
May 30, 2024
Browse files
Merge pull request #4737 from ollama/mxyng/less-generate
only generate on relevant changes
parents
a50a87a7
98085015
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
.github/workflows/test.yaml
.github/workflows/test.yaml
+4
-4
No files found.
.github/workflows/test.yaml
View file @
278e25ea
...
@@ -34,13 +34,13 @@ jobs:
...
@@ -34,13 +34,13 @@ jobs:
git diff-tree -r --no-commit-id --name-only \
git diff-tree -r --no-commit-id --name-only \
$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) \
$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) \
${{ github.event.pull_request.head.sha }} \
${{ github.event.pull_request.head.sha }} \
| xargs python3 -c "import sys;
print(any([x.startswith('$1') for x in sys.argv[1:]]
))"
| xargs python3 -c "import sys;
from pathlib import Path; print(any(Path(x).match(glob) for x in sys.argv[1:] for glob in '$*'.split(' ')
))"
}
}
{
{
echo GENERATE=$(changed llm/)
echo GENERATE=$(changed
'
llm/
llama.cpp' 'llm/patches/**' 'llm/ext_server/**' 'llm/generate/**'
)
echo GENERATE_CUDA=$(changed llm/)
echo GENERATE_CUDA=$(changed
'
llm/
llama.cpp' 'llm/patches/**' 'llm/ext_server/**' 'llm/generate/**'
)
echo GENERATE_ROCM=$(changed llm/)
echo GENERATE_ROCM=$(changed
'
llm/
llama.cpp' 'llm/patches/**' 'llm/ext_server/**' 'llm/generate/**'
)
} >>$GITHUB_OUTPUT
} >>$GITHUB_OUTPUT
generate
:
generate
:
...
...
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