v2 / .github / workflows / periodic_ci.yml
40 lines · 38 sloc · 1.02 KB · d444f9c25dea51ee70d1a8ec896b34484370e791
Raw
1name: Periodic CI
2
3on:
4 schedule:
5 - cron: '0 */6 * * *'
6 push:
7 paths:
8 - '**/periodic_ci.yml'
9 pull_request:
10 paths:
11 - '**/periodic_ci.yml'
12
13jobs:
14 periodic-network:
15 strategy:
16 matrix:
17 include:
18 - os: ubuntu-latest
19 cc: tcc
20 - os: windows-latest
21 cc: msvc
22 - os: macos-latest
23 cc: clang
24 fail-fast: false
25 runs-on: ${{ matrix.os }}
26 if: github.event_name != 'schedule' || (github.ref == 'refs/heads/master' && github.repository == 'vlang/v')
27 timeout-minutes: 30
28 env:
29 VFLAGS: -cc ${{ matrix.cc }}
30 V_CI_PERIODIC: 1
31 steps:
32 - uses: actions/checkout@v6
33 - name: Build
34 if: runner.os != 'Windows'
35 run: make -j4 && ./v -showcc -o v cmd/v && ./v doctor
36 - name: Build V (Windows)
37 if: runner.os == 'Windows'
38 run: ./makev.bat -msvc && ./v -o v2.exe cmd/v && ./v2 -showcc -o v.exe cmd/v && ./v doctor
39 - name: Test
40 run: ./v -d network -silent test-self vlib/net
41