-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathbuild-ui-server-reusable-workflow.yml
More file actions
86 lines (84 loc) · 2.26 KB
/
Copy pathbuild-ui-server-reusable-workflow.yml
File metadata and controls
86 lines (84 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Re-usable Workflow - Build UI and Server
on:
workflow_call:
secrets:
NODE_VERSION:
required: true
GO_VERSION:
required: true
jobs:
build-backend:
name: Backend build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@master
with:
repository: meshery/meshery
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@master
with:
go-version: "1.25"
- name: Setup Cache
uses: actions/cache@v5
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: |
GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go build -tags draft ./server/cmd/main.go ./server/cmd/error.go
- name: Upload artifacts
uses: actions/upload-artifact@v6
with:
name: meshery
path: ./main
ui-build:
name: UI build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@master
with:
repository: meshery/meshery
fetch-depth: 1
- uses: actions/setup-node@v6
with:
node-version: '20.x'
- name: Cache node modules
id: node-cache
uses: actions/cache@v5
with:
path: |
~/cache
~/.cache
/home/runner/.cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/lockfiles') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
cd ui
npm i
cd ..
cd provider-ui
npm i
- name: build meshery-ui
run: |
make ui-meshery-build
- name: build provider-ui
run: |
make ui-provider-build
- name: upload meshery-ui artifact
uses: actions/upload-artifact@v6
with:
name: meshery-ui-build
path: ui/out/
- name: upload Meshery-provider-ui artifacts
uses: actions/upload-artifact@v6
with:
name: meshery-provider-ui build
path: provider-ui/out/