Skip to content

Commit c9ecd55

Browse files
fix: add Linux system dependencies to CI workflows
- Add glib-2.0 and gobject-2.0 dependencies to test job - Update dependency installation condition to use runner.os == 'Linux' - Ensure all CI jobs can build Tauri applications on Linux runners
1 parent 1a34b7d commit c9ecd55

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
with:
2323
node-version: lts/*
2424

25+
- name: Install dependencies (ubuntu only)
26+
if: runner.os == 'Linux'
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
30+
2531
- name: Setup Rust
2632
uses: dtolnay/rust-toolchain@stable
2733
with:
@@ -87,7 +93,7 @@ jobs:
8793
uses: actions/checkout@v4
8894

8995
- name: Install dependencies (ubuntu only)
90-
if: matrix.os == 'ubuntu-22.04'
96+
if: runner.os == 'Linux'
9197
run: |
9298
sudo apt-get update
9399
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v4
3030

3131
- name: Install dependencies (ubuntu only)
32-
if: matrix.platform == 'ubuntu-22.04'
32+
if: runner.os == 'Linux'
3333
run: |
3434
sudo apt-get update
3535
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)