This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
90 lines (86 loc) · 2.11 KB
/
ci.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
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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '31 1 * * *'
jobs:
ubuntu-gcc:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
VFLAGS: -cc gcc
steps:
- name: Install Boehm GC
run: sudo apt-get install libgc-dev
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Checkout VLS
uses: actions/checkout@v2
with:
path: vls
- name: Build local V
run: make
- name: Symlink VLS to ~/.vmodules/vls
run: ln -s $(realpath vls) ~/.vmodules/vls
# - name: Ensure VLS code is formatted
# run: ./v fmt -verify vls/
- name: Run VLS tests
run: ./v test vls
- name: Check VLS compiles
run: ./v vls/cmd/vls/
- name: Check VLS compiles with -prod
run: ./v -prod vls/cmd/vls/
macos-clang:
runs-on: macOS-latest
timeout-minutes: 30
env:
VFLAGS: -cc clang
steps:
- name: Install Boehm GC
run: brew install bdw-gc
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Checkout VLS
uses: actions/checkout@v2
with:
path: vls
- name: Build local v
run: make
- name: Run tests
run: ./v test vls
- name: Check VLS compiles
run: ./v vls/cmd/vls/
- name: Check VLS compiles with -prod
run: ./v -prod vls/cmd/vls/
windows-msvc:
runs-on: windows-latest
timeout-minutes: 30
env:
VFLAGS: -cc msvc
steps:
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Checkout VLS
uses: actions/checkout@v2
with:
path: vls
- name: Build local v
run: .\make.bat -msvc
- name: Run tests
run: |
.\v.exe test vls\lsp\
.\v.exe test vls\analyzer\
.\v.exe test vls\server\tests\
.\v.exe test vls\server\general_test.v
.\v.exe test vls\server\window_test.v