Skip to content

Commit c5a6aeb

Browse files
authored
ci: add new workflow, for doing the slower tests in vpm specifically with -d network (#20177)
1 parent b3743d3 commit c5a6aeb

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/vpm_ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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

0 commit comments

Comments
 (0)