2019-12-29 13:33:33 +03:00
|
|
|
name: Periodic
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '31 1,12 * * *'
|
|
|
|
|
2020-02-09 12:08:04 +03:00
|
|
|
jobs:
|
2020-06-09 09:49:23 +03:00
|
|
|
network-tests-ubuntu:
|
2019-12-29 13:33:33 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-10-18 19:44:53 +03:00
|
|
|
env:
|
|
|
|
V_CI_PERIODIC: 1
|
2019-12-29 13:33:33 +03:00
|
|
|
steps:
|
2020-05-20 16:33:35 +03:00
|
|
|
- uses: actions/checkout@v2
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Install dependencies
|
2020-06-09 19:02:57 +03:00
|
|
|
run: sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Build v
|
2020-06-09 19:02:57 +03:00
|
|
|
run: make -j4
|
2020-05-20 16:33:35 +03:00
|
|
|
- name: Symlink V
|
|
|
|
run: sudo ./v symlink
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Run network tests
|
2020-10-18 19:44:53 +03:00
|
|
|
run: ./v -d network -silent test-fixed
|
2019-12-29 13:33:33 +03:00
|
|
|
|
|
|
|
|
|
|
|
network-tests-macos:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macOS-latest]
|
2020-10-18 19:44:53 +03:00
|
|
|
env:
|
|
|
|
V_CI_PERIODIC: 1
|
2019-12-29 13:33:33 +03:00
|
|
|
steps:
|
2020-05-20 16:33:35 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup openssl library path
|
|
|
|
run: export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Build V
|
2020-05-20 16:33:35 +03:00
|
|
|
run: make -j4
|
|
|
|
- name: Symlink V
|
2019-12-29 13:33:33 +03:00
|
|
|
run: sudo ./v symlink
|
2020-02-16 18:13:45 +03:00
|
|
|
- name: Ensure thirdparty/cJSON/cJSON.o is compiled, before running tests.
|
|
|
|
run: ./v examples/json.v
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Run network tests
|
2020-10-18 19:44:53 +03:00
|
|
|
run: ./v -d network -silent test-fixed
|
2019-12-29 13:33:33 +03:00
|
|
|
|
|
|
|
|
2020-01-16 20:16:11 +03:00
|
|
|
network-windows-msvc:
|
2019-12-29 13:33:33 +03:00
|
|
|
runs-on: windows-2019
|
|
|
|
env:
|
2020-10-18 19:44:53 +03:00
|
|
|
V_CI_PERIODIC: 1
|
2019-12-29 13:33:33 +03:00
|
|
|
VFLAGS: -cc msvc
|
|
|
|
steps:
|
2020-05-20 16:33:35 +03:00
|
|
|
- uses: actions/checkout@v2
|
2019-12-29 13:33:33 +03:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
echo %VFLAGS%
|
|
|
|
echo $VFLAGS
|
|
|
|
.\make.bat -msvc
|
|
|
|
- name: Run network tests
|
2020-10-18 19:44:53 +03:00
|
|
|
run: .\v.exe -d network -silent test-fixed
|