blob: ab84f592e1e731bd040b222f5b7348fb0e71a787 (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
trigger:
- master
jobs:
- job: windows
pool:
vmImage: 'windows-latest'
steps:
- script: |
git submodule update --init --recursive
displayName: 'Init'
- script: |
cd 3rd\luamake
tools\ninja.exe -f ninja\msvc.ninja
cd ..\..
displayName: 'Compile luamake'
- script: |
3rd\luamake\luamake.exe rebuild
displayName: 'Compile'
- script: |
cd client
npm install
cd ..
displayName: 'Install Client'
- script: |
server\Windows\bin\lua-language-server.exe server\publish.lua
displayName: 'Publish'
- task: CopyFiles@2
inputs:
Contents: '**'
SourceFolder: 'publish\lua-language-server'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: sumneko.lua-windows
- job: macos
pool:
vmImage: 'macos-latest'
steps:
- bash: |
git submodule update --init --recursive
displayName: 'Init'
- bash: |
sudo xcode-select -s /Applications/Xcode_10.2.app
brew install ninja
displayName: 'Install'
- bash: |
cd 3rd/luamake
ninja -f ninja/macos.ninja
cd ../..
displayName: 'Compile luamake'
- bash: |
rm server/macOS -r
./3rd/luamake/luamake rebuild
displayName: 'Compile'
- bash: |
cd client
npm install
cd ..
displayName: 'Install Client'
- bash: |
ulimit -n 10000
./server/macOS/bin/lua-language-server server/publish.lua
displayName: 'Publish'
- task: CopyFiles@2
inputs:
Contents: '**'
SourceFolder: 'publish/lua-language-server'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: sumneko.lua-macos
- job: linux
pool:
vmImage: 'ubuntu-latest'
steps:
- bash: |
git submodule update --init --recursive
displayName: 'Init'
- bash: |
sudo apt-get install -y libreadline-dev ninja-build
displayName: 'Install'
- bash: |
cd 3rd/luamake
ninja -f ninja/linux.ninja
cd ../..
displayName: 'Compile luamake'
- bash: |
server/Linux -r
./3rd/luamake/luamake rebuild
displayName: 'Compile'
- bash: |
cd client
npm install
cd ..
displayName: 'Install Client'
- bash: |
ulimit -n 10000
./server/Linux/bin/lua-language-server server/publish.lua
displayName: 'Publish'
- task: CopyFiles@2
inputs:
Contents: '**'
SourceFolder: 'publish/lua-language-server'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)
artifactName: sumneko.lua-linux
|