File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-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,26 @@ 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 && sleep 2 && 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+ run : |
42+ export PATH=./src-tauri/target/release/:$PATH
43+
44+ # 1. `run` subcommand works without any arguments
45+ pdl run | grep Usage
46+
47+ # 2. `run` subcommand works with demo1.pdl
48+ pdl run ./demos/demo1.pdl | grep 'write a hello'
49+
3950 - name : Tear down xvfb
4051 run : killall Xvfb
You can’t perform that action at this time.
0 commit comments