Skip to content

Commit ebb6cdf

Browse files
committed
dashboard workflow
1 parent 9466574 commit ebb6cdf

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

.github/workflows/wsnet2-dashboard.yml

+6-21
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,24 @@ on:
99
- 'server/**'
1010

1111
jobs:
12-
C:
13-
runs-on: "ubuntu-latest"
14-
outputs:
15-
GO: "go1.19.13"
16-
GOPHERJS_VER: "v1.19.0-beta1"
17-
steps:
18-
- run: echo 'Set Constants'
19-
20-
gopherjs:
21-
needs: [ C ]
12+
go-wasm:
2213
runs-on: "ubuntu-latest"
2314
defaults:
2415
run:
25-
working-directory: wsnet2-dashboard/backend/go-binary
16+
working-directory: wsnet2-dashboard/backend
2617
steps:
2718
- uses: actions/checkout@v3
2819

2920
- uses: actions/setup-go@v4
3021
with:
31-
go-version-file: "server/go.mod"
22+
go-version-file: "wsnet2-dashboard/backend/go-binary/go.mod"
3223
cache: true
33-
cache-dependency-path: "server/go.sum"
24+
cache-dependency-path: "wsnet2-dashboard/backend/go-binary/go.sum"
3425

3526
- uses: arduino/setup-protoc@v2
3627
with:
3728
version: '24.x'
3829

39-
- run: make -C ../../../server generate
40-
41-
- run: go install golang.org/dl/${{ needs.C.outputs.GO }}@latest && ${{ needs.C.outputs.GO }} download
42-
43-
- run: cd ../../../server && GOARCH=386 go test ./binary
44-
45-
- run: go install github.com/gopherjs/gopherjs@${{ needs.C.outputs.GOPHERJS_VER }}
30+
- run: make -C ../../server generate
4631

47-
- run: GOPHERJS_GOROOT="$(${{ needs.C.outputs.GO }} env GOROOT)" gopherjs build
32+
- run: make src/plugins/binary.wasm

0 commit comments

Comments
 (0)