Skip to content

Commit 02bdb70

Browse files
committed
fix(ci): Tauri Linux 编译补装 glib/gtk/webkit 系统依赖
1 parent 953bf9f commit 02bdb70

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ jobs:
7878
- uses: dtolnay/rust-toolchain@stable
7979
with:
8080
components: clippy
81+
# Tauri 在 Linux 上编译需要 glib/gtk/webkit 系统库(glib-sys 等 -sys crate 的 pkg-config 依赖)
82+
- name: Install Linux system dependencies
83+
run: |
84+
sudo apt-get update
85+
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file \
86+
libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
8187
# sherpa-onnx 等 crate 编译耗时较长,启用 sccache 加速重复构建
8288
- name: Cache cargo registry
8389
uses: Swatinem/rust-cache@v2

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727
- uses: dtolnay/rust-toolchain@stable
28+
# Tauri 在 Linux 上编译需要 glib/gtk/webkit 系统库(glib-sys 等 -sys crate 的 pkg-config 依赖)
29+
- name: Install Linux system dependencies
30+
run: |
31+
sudo apt-get update
32+
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file \
33+
libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev
2834
- name: Cache cargo registry
2935
uses: Swatinem/rust-cache@v2
3036
with:

0 commit comments

Comments
 (0)