-
Notifications
You must be signed in to change notification settings - Fork 47
31 lines (28 loc) · 1.09 KB
/
test_windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: test_windows
on:
push
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install curl
run: choco install curl -y
- name: Install unzip
run: choco install unzip -y
- name: download llamafile
run: curl -L -o llamafile-0.6.2.zip https://github.com/Mozilla-Ocho/llamafile/releases/download/0.6.2/llamafile-0.6.2.zip
- name: unzip llamafile
run: unzip llamafile-0.6.2.zip -d llamafile
- name: chmod
run: chmod -R a+rwx llamafile
- name: download model
run: curl -L -o model.gguf https://huggingface.co/TheBloke/phi-2-GGUF/resolve/main/phi-2.Q4_K_M.gguf?download=true
- name: run command
run: |
copy llamafile/llamafile-0.6.2/bin/llamafile llamafile/llamafile-0.6.2/bin/llamafile.exe
start /B "llamafile/llamafile-0.6.2/bin/llamafile.exe --port 13333 -m model.gguf --log-disable --nobrowser -ngl 0 --gpu no"
timeout /t 5 /nobreak
TCPConnections~/TCPConnections.exe
timeout-minutes: 1