-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtasks.json
More file actions
executable file
·51 lines (49 loc) · 2.5 KB
/
Copy pathtasks.json
File metadata and controls
executable file
·51 lines (49 loc) · 2.5 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
{
"version": "2.0.0",
"tasks": [
{
"label": "Build SimGrid runner",
"type": "shell",
"command": "cmake -S simgrid-runner -B build/simgrid-runner -DCMAKE_BUILD_TYPE=Debug && cmake --build build/simgrid-runner --parallel",
"problemMatcher": ["$gcc"]
},
{
"label": "Build all binaries",
"type": "shell",
"command": "sh",
"args": [
"-c",
"mkdir -p releases/bin && \
GOOS=linux GOARCH=amd64 go build -o releases/bin/akoflow-server_${input:version}_linux_amd64 ./cmd/server && \
GOOS=linux GOARCH=arm64 go build -o releases/bin/akoflow-server_${input:version}_linux_arm64 ./cmd/server && \
GOOS=windows GOARCH=amd64 go build -o releases/bin/akoflow-server_${input:version}_windows_amd64.exe ./cmd/server && \
GOOS=darwin GOARCH=amd64 go build -o releases/bin/akoflow-server_${input:version}_darwin_amd64 ./cmd/server && \
GOOS=darwin GOARCH=arm64 go build -o releases/bin/akoflow-server_${input:version}_darwin_arm64 ./cmd/server && \
GOOS=linux GOARCH=amd64 go build -o releases/bin/akoflow-client_${input:version}_linux_amd64 cmd/client/main.go && \
GOOS=linux GOARCH=arm64 go build -o releases/bin/akoflow-client_${input:version}_linux_arm64 cmd/client/main.go && \
GOOS=windows GOARCH=amd64 go build -o releases/bin/akoflow-client_${input:version}_windows_amd64.exe cmd/client/main.go && \
GOOS=darwin GOARCH=amd64 go build -o releases/bin/akoflow-client_${input:version}_darwin_amd64 cmd/client/main.go && \
GOOS=darwin GOARCH=arm64 go build -o releases/bin/akoflow-client_${input:version}_darwin_arm64 cmd/client/main.go"
],
"problemMatcher": []
},
{
"label": "Build Client Binary send to VM",
"type": "shell",
"command": "sh",
"args": [
"-c",
"GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /tmp/akoflow-client_linux_amd64 cmd/client/main.go && \
sshpass -p '1334' scp /tmp/akoflow-client_linux_amd64 ubuntu@192.168.1.8:/home/ubuntu/akoflow-client_linux_amd64"
],
}
],
"inputs": [
{
"id": "version",
"type": "promptString",
"description": "Enter the version for the build",
"default": "1.0.0"
}
]
}