File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ concurrency:
1212 cancel-in-progress : true
1313
1414jobs :
15- viewer :
15+ cli :
1616 name : Test pdl CLI using Tauri
1717 runs-on : ubuntu-latest
1818 defaults :
@@ -26,15 +26,25 @@ jobs:
2626 node-version : 22
2727 - name : Install dependencies
2828 run : |
29- npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
29+ npm ci & sudo apt update && \
30+ sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \
31+ (curl -fsSL https://ollama.com/install.sh | sudo -E sh && ollama pull granite3.2:2b)
3032 wait
3133 - name : Test production build
3234 run : npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
3335 - name : Setup xvfb for screen 0
34- run : Xvfb :1 -screen 0 1600x1200x24 &
36+ run : Xvfb :1 -screen 0 1600x1200x24 &
37+
3538 - name : Run production build
3639 env :
3740 DISPLAY : :1
38- run : ./src-tauri/target/release/pdl run | grep Usage
41+ PATH : ./src-tauri/target/release/:$PATH
42+ run : |
43+ # 1. `run` subcommand works without any arguments
44+ pdl run | grep Usage
45+
46+ # 2. `run` subcommand works with demo1.pdl
47+ pdl run ./demos/demo1.pdl | grep 'write a hello'
48+
3949 - name : Tear down xvfb
4050 run : killall Xvfb
You can’t perform that action at this time.
0 commit comments