Skip to content

Commit 4e841cd

Browse files
authored
Merge pull request #66 from HyperloopUPV-H8/features/build-frontend
[actions] [PR2] Add ethernet view build workflow
2 parents 80d2042 + 59c1c7a commit 4e841cd

4 files changed

Lines changed: 47 additions & 96 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build backend
22

33
on:
44
workflow_call:
@@ -46,8 +46,8 @@ jobs:
4646
run: |
4747
go build -ldflags '-linkmode external -extldflags "-static"' -o ../output/backend-linux-64
4848
49-
- name: "Uplaod artifacts"
50-
uses: actions/upload-artifact@v2
49+
- name: "Upload build"
50+
uses: actions/upload-artifact@v3
5151
with:
5252
name: backend-linux
5353
path: "${{env.BACKEND_DIR}}/output/*"
@@ -89,7 +89,7 @@ jobs:
8989
run: |
9090
go build -o ..\output\backend-windows-64.exe
9191
92-
- name: "Uplaod artifacts"
92+
- name: "Upload build"
9393
uses: actions/upload-artifact@v3
9494
with:
9595
name: backend-windows
@@ -141,7 +141,7 @@ jobs:
141141
run: |
142142
go build -o ../output/backend-macos-m1-64
143143
144-
- name: "Uplaod artifacts"
144+
- name: "Upload build"
145145
uses: actions/upload-artifact@v3
146146
with:
147147
name: backend-macos
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build ethernet view
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-ethernet-view:
9+
name: "Build ethernet view"
10+
runs-on: ubuntu-latest
11+
12+
env:
13+
FRONTEND_DIR: ./ethernet-view
14+
COMMON_DIR: ./common-front
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: "Install common front dependencies"
20+
working-directory: "${{env.COMMON_DIR}}"
21+
run: npm install
22+
23+
24+
- name: "Build common front"
25+
working-directory: "${{env.COMMON_DIR}}"
26+
run: npm run build
27+
28+
- name: "Install ethernet view dependencies"
29+
working-directory: "${{env.FRONTEND_DIR}}"
30+
run: npm install
31+
32+
33+
- name: "Build ethernet view"
34+
working-directory: "${{env.FRONTEND_DIR}}"
35+
run: npm run build
36+
37+
38+
- name: "Upload build"
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: ethernet-view
42+
path: "${{env.FRONTEND_DIR}}/static/*"

.github/workflows/pre-release.yaml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/release.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)