Skip to content

Commit 400ea86

Browse files
committed
feat: update ci config
1 parent decdc44 commit 400ea86

File tree

9 files changed

+9
-15
lines changed

9 files changed

+9
-15
lines changed

.github/workflows/publish-desktop-app.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ jobs:
4141
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
4242
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4343

44+
- name: Install system dependencies
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install -y libglib2.0-dev pkg-config
48+
49+
- name: Set PKG_CONFIG_PATH
50+
run: |
51+
echo "PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/" >> $GITHUB_ENV
52+
4453
- name: install dependencies (ubuntu only)
4554
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
4655
run: |
@@ -49,21 +58,6 @@ jobs:
4958
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
5059
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
5160

52-
# macOS 专属依赖安装 aarch64
53-
- name: Install macOS Dependencies
54-
if: matrix.args == '--target aarch64-apple-darwin'
55-
run: |
56-
brew update
57-
brew install glib pkg-config gobject-2.0
58-
echo "PKG_CONFIG_PATH=$(brew --prefix glib)/lib/pkgconfig" >> $GITHUB_ENV
59-
# macOS 专属依赖安装 x86_64
60-
- name: Install macOS Dependencies
61-
if: matrix.args == '--target x86_64-apple-darwin'
62-
run: |
63-
brew update
64-
brew install glib pkg-config
65-
echo "PKG_CONFIG_PATH=$(brew --prefix glib)/lib/pkgconfig" >> $GITHUB_ENV
66-
6761
- name: Install pnpm
6862
uses: pnpm/action-setup@v4
6963
with:
2.8 KB
Loading
3.77 KB
Loading
3.87 KB
Loading
7.56 KB
Loading
8.39 KB
Loading
1.27 KB
Loading
1.96 KB
Loading
2.41 KB
Loading

0 commit comments

Comments
 (0)