-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (51 loc) · 1.46 KB
/
vsix.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
55
56
57
58
59
60
61
name: Package VSIX
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
cache-dependency-path: |
server/go.sum
- name: Prepare building environment
run: |
cd client
npm install
- name: Build for Linux x86_64
run: |
cd client
GOOS=linux GOARCH=amd64 npx vsce package -t linux-x64 -o vls-linux.vsix
rm -r bin
- name: Upload Linux x86_64 artifact
uses: actions/upload-artifact@v4
with:
name: vls-linux-amd64
path: client/vls-linux.vsix
- name: Build for Windows x86_64
run: |
cd client
GOOS=windows GOARCH=amd64 npx vsce package -t win32-x64 -o vls-windows.vsix
rm -r bin
- name: Upload Windows x86_64 artifact
uses: actions/upload-artifact@v4
with:
name: vls-windows-amd64
path: client/vls-windows.vsix
- name: Build for macOS x86_64
run: |
cd client
GOOS=darwin GOARCH=amd64 npx vsce package -t darwin-x64 -o vls-darwin.vsix
rm -r bin
- name: Upload macOS x86_64 artifact
uses: actions/upload-artifact@v4
with:
name: vls-darwin-amd64
path: client/vls-darwin.vsix