13
13
- name : Check out code
14
14
uses : actions/checkout@v4
15
15
16
+ - name : Set up node
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : " 18"
20
+
21
+ - name : Set up Rust
22
+ uses : actions-rs/toolchain@v1
23
+ with :
24
+ profile : minimal
25
+ toolchain : stable
26
+ override : true
27
+
16
28
# Ignore lines containing 'version = "x.x.x"' and hash the rest of Cargo.lock
17
29
- name : Generate custom cache key
18
30
id : cargo-hash
@@ -25,15 +37,15 @@ jobs:
25
37
uses : actions/cache@v4
26
38
with :
27
39
path : ~/.cargo/registry
28
- key : ${{ runner.os }}-cargo-registry-${{ steps.cargo-hash.outputs.CARGO_CACHE_KEY }}-${{ runner.os }}
40
+ key : ${{ runner.os }}-cargo-registry-${{ steps.cargo-hash.outputs.CARGO_CACHE_KEY }}
29
41
restore-keys : |
30
42
${{ runner.os }}-cargo-registry-
31
43
32
44
- name : Cache Cargo git index
33
45
uses : actions/cache@v4
34
46
with :
35
47
path : ~/.cargo/git
36
- key : ${{ runner.os }}-cargo-git-${{ steps.cargo-hash.outputs.CARGO_CACHE_KEY }}-${{ runner.os }}
48
+ key : ${{ runner.os }}-cargo-git-${{ steps.cargo-hash.outputs.CARGO_CACHE_KEY }}
37
49
restore-keys : |
38
50
${{ runner.os }}-cargo-git-
39
51
45
57
restore-keys : |
46
58
${{ runner.os }}-cargo-target-
47
59
48
- - name : Set up node
49
- uses : actions/setup-node@v4
50
- with :
51
- node-version : " 18"
52
-
53
- - name : Set up Rust
54
- uses : actions-rs/toolchain@v1
55
- with :
56
- profile : minimal
57
- toolchain : stable
58
- override : true
59
-
60
- - name : Cache node_modules
61
- uses : actions/cache@v4
62
- with :
63
- path : node_modules
64
- key : ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}-${{ runner.os }}
65
- restore-keys : |
66
- ${{ runner.os }}-node-modules-
67
-
68
- - name : Install Node Module
69
- run : npm i
70
-
71
60
- name : Cache Tauri CLI (cross-platform)
72
61
id : tauri-cli-cache
73
62
uses : actions/cache@v4
79
68
restore-keys : |
80
69
${{ runner.os }}-tauri-cli-
81
70
71
+ - name : Cache node_modules
72
+ uses : actions/cache@v4
73
+ with :
74
+ path : node_modules
75
+ key : ${{ runner.os }}-node-modules-${{ hashFiles('package-lock.json') }}
76
+ restore-keys : |
77
+ ${{ runner.os }}-node-modules-
78
+
79
+ - name : Install Node Module
80
+ run : npm i pnpm -g && pnpm i
81
+ env :
82
+ PATH : C:/Users/runneradmin/AppData/Roaming/npm:${{ env.PATH }}
83
+
82
84
- name : Install Protoc
83
85
uses : arduino/setup-protoc@v3
84
86
with :
@@ -96,13 +98,13 @@ jobs:
96
98
run : mkdir output
97
99
98
100
- name : Copy files to output
99
- run : cp src-tauri\\ target\\ release\\ bundle\\ nsis\\ *.exe output\\
101
+ run : cp src-tauri/ target/ release/ bundle/ nsis/ *.exe output/
100
102
101
103
- name : Upload artifact
102
104
uses : actions/upload-artifact@v4
103
105
with :
104
106
name : windows
105
- path : output\\ *.exe
107
+ path : output/ *.exe
106
108
107
109
release :
108
110
name : Publish Release
@@ -111,7 +113,7 @@ jobs:
111
113
112
114
steps :
113
115
- name : Check out code
114
- uses : actions/checkout@v2
116
+ uses : actions/checkout@v4
115
117
116
118
- name : Determine Release Info
117
119
env :
0 commit comments