Skip to content

Commit d1a16eb

Browse files
Host the embedded workspace in a Python-free native desktop
1 parent eba687f commit d1a16eb

33 files changed

Lines changed: 6319 additions & 804 deletions

‎.github/workflows/native.yml‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
1-
name: Native engine
1+
name: Native desktop
22
on:
33
push:
44
branches: [native-0.20]
55
pull_request:
6-
paths: ['native/**', 'src-tauri/**', 'Cargo.toml', 'Cargo.lock', '.github/workflows/native.yml']
6+
paths: ['native/**', 'src-tauri/**', 'ui/**', 'scripts/test-native-desktop.mjs', 'Cargo.toml', 'Cargo.lock', '.github/workflows/native.yml']
77
permissions:
88
contents: read
99
jobs:
1010
verify:
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
14+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
15+
with:
16+
node-version: '22'
17+
cache: npm
18+
cache-dependency-path: ui/package-lock.json
19+
- name: Native window dependencies
20+
run: sudo apt-get update && sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev librsvg2-dev libayatana-appindicator3-dev patchelf webkit2gtk-driver xvfb
21+
- run: npm --prefix ui ci && npm --prefix ui run build && npm --prefix ui test
1422
- name: Install pinned Rust toolchain
1523
run: rustup toolchain install 1.95.0 --profile minimal --component rustfmt --component clippy
1624
- run: cargo +1.95.0 fmt --all --check
1725
- run: cargo +1.95.0 clippy --workspace --all-targets --locked -- -D warnings
1826
- run: cargo +1.95.0 test --workspace --locked
27+
- run: cargo +1.95.0 build -p shadowcode-desktop --locked
28+
- run: cargo +1.95.0 install tauri-driver --version 2.0.6 --locked
29+
- name: Exercise the native window
30+
run: xvfb-run -a -s '-screen 0 1440x1100x24' dbus-run-session -- node scripts/test-native-desktop.mjs
31+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
32+
if: always()
33+
with:
34+
name: native-window-diagnostics
35+
path: artifacts/native
1936
- run: cargo +1.95.0 build --release -p shadowcode-core --examples --locked

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ ui/test-results/
3232
ui/playwright-report/
3333
src/shadow_agent/_assets/
3434
/target/
35+
/src-tauri/gen/

0 commit comments

Comments
 (0)