1
1
name : Build App With Pake CLI
2
-
3
2
on :
4
3
workflow_dispatch :
5
4
inputs :
6
5
platform :
7
6
description : ' Platform'
8
7
required : true
9
- default : ' ubuntu-22.04 '
8
+ default : ' macos-latest '
10
9
type : choice
11
10
options :
12
11
- ' windows-latest'
13
12
- ' macos-latest'
14
- - ' ubuntu-22 .04'
13
+ - ' ubuntu-20 .04'
15
14
url :
16
15
description : ' URL'
17
16
required : true
@@ -65,17 +64,17 @@ jobs:
65
64
- name : Checkout repository
66
65
uses : actions/checkout@v3
67
66
68
- - name : Install Node.js
67
+ - name : Install node
69
68
uses : actions/setup-node@v3
70
69
with :
71
70
node-version : 18
72
71
73
- - name : Install Rust for ubuntu-22 .04
74
- if : inputs.platform == 'ubuntu-22 .04'
72
+ - name : Install Rust for ubuntu-20 .04
73
+ if : inputs.platform == 'ubuntu-20 .04'
75
74
uses : dtolnay/rust-toolchain@stable
76
75
with :
77
76
toolchain : stable
78
- target : x86_64-unknown-linux-gnu
77
+ target : x86_64-unknown-linux-musl
79
78
80
79
- name : Install Rust for windows-latest
81
80
if : inputs.platform == 'windows-latest'
@@ -91,32 +90,22 @@ jobs:
91
90
toolchain : stable
92
91
target : x86_64-apple-darwin
93
92
94
- - name : Install dependencies (Ubuntu only)
95
- if : inputs.platform == 'ubuntu-22.04'
96
- run : |
97
- sudo apt-get update
98
- sudo apt-get install -y libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2.2-dev libglib2.0-dev
99
-
100
- - name : Set PKG_CONFIG_PATH (Ubuntu only)
101
- if : inputs.platform == 'ubuntu-22.04'
102
- run : |
103
- export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig
104
- echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
105
-
106
- - name : Verify glib-2.0 installation (Ubuntu only)
107
- if : inputs.platform == 'ubuntu-22.04'
108
- run : |
109
- pkg-config --modversion glib-2.0
93
+ - name : Install dependencies (ubuntu only)
94
+ if : inputs.platform == 'ubuntu-20.04'
95
+
96
+ with :
97
+ packages : libjavascriptcoregtk-4.1-dev libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra libglib2.0-dev libgobject-2.0-0 pkg-config
98
+ version : 1.1
110
99
111
- - name : Install pake-cli locally
100
+ - name : Install pake-cli local
112
101
shell : bash
113
102
run : |
114
- echo "Installing pake-cli locally "
103
+ echo "install pake on local "
115
104
npm install pake-cli
116
105
117
- - name : Restore Rust cache
106
+ - name : Rust cache restore
118
107
uses : actions/cache/restore@v3
119
- id : cache_restore
108
+ id : cache_store
120
109
with :
121
110
path : |
122
111
~/.cargo/bin/
@@ -126,7 +115,7 @@ jobs:
126
115
node_modules/pake-cli/src-tauri/target/
127
116
key : ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
128
117
129
- - name : Install additional dependencies
118
+ - name : Install dependencies
130
119
run : |
131
120
npm install shelljs
132
121
npm install axios
@@ -144,17 +133,20 @@ jobs:
144
133
FULLSCREEN : ${{ inputs.fullscreen }}
145
134
MULTI_ARCH : ${{ inputs.multi_arch }}
146
135
TARGETS : ${{ inputs.targets }}
136
+ PKG_CONFIG_PATH : /usr/lib/x86_64-linux-gnu/pkgconfig:/usr/share/pkgconfig
137
+ PKG_CONFIG_ALLOW_SYSTEM_LIBS : 1
138
+ PKG_CONFIG_ALLOW_SYSTEM_CFLAGS : 1
147
139
148
- - name : Upload build artifacts
140
+ - name : Upload archive
149
141
uses : actions/upload-artifact@v4
150
142
with :
151
143
name : output-${{ inputs.platform }}.zip
152
144
path : node_modules/pake-cli/output/*
153
145
retention-days : 3
154
146
155
- - name : Save Rust cache
147
+ - name : Rust cache store
156
148
uses : actions/cache/save@v3
157
- if : steps.cache_restore .outputs.cache-hit != 'true'
149
+ if : steps.cache_store .outputs.cache-hit != 'true'
158
150
with :
159
151
path : |
160
152
~/.cargo/bin/
0 commit comments