forked from meshery/meshery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-ui-server-reusable-workflow.yml
More file actions
54 lines (53 loc) · 1.47 KB
/
build-ui-server-reusable-workflow.yml
File metadata and controls
54 lines (53 loc) · 1.47 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
name: Re-usable Workflow - Build UI and Server
on:
workflow_call:
secrets: {}
jobs:
build-backend:
name: Backend build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
repository: meshery/meshery
fetch-depth: 1
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
- 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@v4
with:
name: meshery
path: ./main
ui-build:
name: UI build
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
repository: meshery/meshery
fetch-depth: 1
- uses: actions/setup-node@v4
with:
node-version: "20.x"
check-latest: true
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Install dependencies
run: |
make ui-build
- name: upload meshery-ui artifact
uses: actions/upload-artifact@v4
with:
name: meshery-ui-build
path: ui/out/
- name: upload Meshery-provider-ui artifacts
uses: actions/upload-artifact@v4
with:
name: meshery-provider-ui build
path: provider-ui/out/