File tree Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Expand file tree Collapse file tree 1 file changed +70
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : VPM CI
2
+
3
+ on :
4
+ push :
5
+ paths :
6
+ - ' **/vpm_ci.yml'
7
+ - ' **/cmd/tools/vpm/**'
8
+ pull_request :
9
+ paths :
10
+ - ' **/vpm_ci.yml'
11
+ - ' **/cmd/tools/vpm/**'
12
+
13
+ concurrency :
14
+ group : vpm-ci-${{ github.event.pull_request.number || github.sha }}
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ setup :
19
+ strategy :
20
+ matrix :
21
+ os : [ubuntu-20.04, windows-2019, macos-12]
22
+ fail-fast : false
23
+ runs-on : ${{ matrix.os }}
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ with :
27
+ path : vlang
28
+ - name : Build V
29
+ if : runner.os != 'Windows'
30
+ run : cd vlang && make -j4 && ./v doctor
31
+ - name : Build V (Windows)
32
+ if : runner.os == 'Windows'
33
+ run : cd vlang && ./make.bat && ./v doctor
34
+ - name : Cache V
35
+ uses : actions/cache/save@v3
36
+ with :
37
+ path : vlang
38
+ key : ${{ runner.os }}-${{ github.sha }}
39
+
40
+ test :
41
+ needs : setup
42
+ strategy :
43
+ matrix :
44
+ include :
45
+ - os : ubuntu-20.04
46
+ cc : tcc
47
+ - os : ubuntu-20.04
48
+ cc : gcc
49
+ - os : ubuntu-20.04
50
+ cc : clang
51
+ - os : windows-2019
52
+ cc : tcc
53
+ - os : windows-2019
54
+ cc : gcc
55
+ - os : windows-2019
56
+ cc : msvc
57
+ - os : macos-12
58
+ cc : clang
59
+ fail-fast : false
60
+ runs-on : ${{ matrix.os }}
61
+ env :
62
+ VFLAGS : -cc ${{ matrix.cc }} -d network
63
+ steps :
64
+ - name : Restore V cache
65
+ uses : actions/cache/restore@v3
66
+ with :
67
+ path : vlang
68
+ key : ${{ runner.os }}-${{ github.sha }}
69
+ - name : Test
70
+ run : cd vlang && ./v test cmd/tools/vpm
You can’t perform that action at this time.
0 commit comments