@@ -14,9 +14,42 @@ permissions:
14
14
contents : write
15
15
16
16
jobs :
17
+ build-dashboard :
18
+ name : Build Dashboard
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Checkout Dashboard
22
+ uses : actions/checkout@v4
23
+ with :
24
+ repository : PocketRelay/Dashboard
25
+ ref : master
26
+ path : dashboard
27
+
28
+ - name : Setup Node.js
29
+ uses : actions/setup-node@v4
30
+ with :
31
+ node-version : " 20"
32
+ cache : " npm"
33
+ cache-dependency-path : dashboard/package-lock.json
34
+
35
+ - name : Install dashboard dependencies
36
+ working-directory : dashboard
37
+ run : npm ci
38
+
39
+ - name : Build dashboard
40
+ working-directory : dashboard
41
+ run : npm run build
42
+
43
+ - name : Upload dashboard artifact
44
+ uses : actions/upload-artifact@v4
45
+ with :
46
+ name : dashboard-build
47
+ path : dashboard/build/
48
+
17
49
build-linux :
18
50
name : Build Linux targets
19
51
runs-on : ubuntu-latest
52
+ needs : [build-dashboard]
20
53
strategy :
21
54
matrix :
22
55
include :
44
77
# Checkout the repo for building
45
78
- uses : actions/checkout@v4
46
79
80
+ # Download the dashboard build artifact
81
+ - name : Download dashboard artifact
82
+ uses : actions/download-artifact@v4
83
+ with :
84
+ name : dashboard-build
85
+ merge-multiple : true
86
+ path : src/resources/public
87
+
47
88
# Setup rust for building the service
48
89
- name : Set up Rust
49
90
uses : dtolnay/rust-toolchain@stable
91
132
build-windows :
92
133
name : Build Windows targets
93
134
runs-on : windows-latest
135
+ needs : [build-dashboard]
94
136
strategy :
95
137
matrix :
96
138
include :
@@ -108,6 +150,14 @@ jobs:
108
150
# Checkout the repo for building
109
151
- uses : actions/checkout@v4
110
152
153
+ # Download the dashboard build artifact
154
+ - name : Download dashboard artifact
155
+ uses : actions/download-artifact@v4
156
+ with :
157
+ name : dashboard-build
158
+ merge-multiple : true
159
+ path : src/resources/public
160
+
111
161
# Setup rust for building the service
112
162
- name : Install Rust
113
163
uses : dtolnay/rust-toolchain@stable
@@ -173,6 +223,8 @@ jobs:
173
223
uses : actions/download-artifact@v4
174
224
with :
175
225
path : dist
226
+ # Only download the executables not the dashboard
227
+ pattern : pocket-relay-*
176
228
merge-multiple : true
177
229
178
230
# Create the github release if we pushed up a new tag
0 commit comments