forked from jushar/MTATD
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (41 loc) · 1.28 KB
/
build.yml
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: Build VS Code extension
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt install golang-go npm upx-ucl
go get github.com/gorilla/mux
sudo npm install -g vsce
- name: Build Linux debug server
run: |
go build -o VSCode_Extension/DebugServerLinux TestServer/*.go
upx -9 VSCode_Extension/DebugServerLinux
- name: Build Windows debug server
run: |
GOOS="windows" go build -o VSCode_Extension/DebugServer.exe TestServer/*.go
upx -9 VSCode_Extension/DebugServer.exe
- name: Copy MTA Resource
run: |
mkdir VSCode_Extension/debugger_mta_resource
cp -r LuaLibrary/debugger/* VSCode_Extension/debugger_mta_resource
- name: Load Node modules
run: |
cd VSCode_Extension
npm install
- name: Build VS Code extension
run: |
cd VSCode_Extension
vsce package -o mtatd.vsix
- uses: actions/upload-artifact@v2
with:
name: VSCode Extension
path: VSCode_Extension/mtatd.vsix