2019-12-29 11:33:33 +01:00
|
|
|
name: Periodic
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '31 1,12 * * *'
|
|
|
|
|
2020-02-09 10:08:04 +01:00
|
|
|
jobs:
|
2019-12-29 11:33:33 +01:00
|
|
|
network-tests-ubuntu-tcc:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
VFLAGS: -cc tcc
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list
|
|
|
|
sudo apt-get update
|
2020-02-09 10:08:04 +01:00
|
|
|
sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev
|
|
|
|
sudo apt-get install --quiet -y sqlite3 libsqlite3-dev
|
2019-12-29 11:33:33 +01:00
|
|
|
sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
|
|
|
- name: Build v
|
2020-02-09 10:08:04 +01:00
|
|
|
run: echo $VFLAGS && make -j4 && ./v -cg -o v cmd/v
|
2019-12-29 11:33:33 +01:00
|
|
|
- name: Test v->c
|
|
|
|
run: |
|
|
|
|
sudo ln -s /var/tmp/tcc/bin/tcc /usr/local/bin/tcc
|
|
|
|
tcc -version
|
2020-02-09 10:08:04 +01:00
|
|
|
./v -o v2 cmd/v # Make sure vtcc can build itself
|
2019-12-29 11:33:33 +01:00
|
|
|
- name: Run network tests
|
|
|
|
run: ./v -d network test vlib/
|
|
|
|
|
|
|
|
|
|
|
|
network-tests-macos:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macOS-latest]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-02-13 19:22:13 +01:00
|
|
|
##brew install libpq openssl freetype ### these are *already installed* on Catalina ...
|
|
|
|
brew uninstall --ignore-dependencies libpq ## libpq is a dependency of PHP
|
|
|
|
brew install postgresql
|
|
|
|
brew install glfw sdl2 sdl2_ttf sdl2_mixer sdl2_image
|
2019-12-29 11:33:33 +01:00
|
|
|
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
|
|
|
|
- name: Build V
|
2020-02-12 17:34:11 +01:00
|
|
|
run: make -j4 && ./v -cg -o v cmd/v
|
2019-12-29 11:33:33 +01:00
|
|
|
- name: Build V using V
|
2020-02-12 17:34:11 +01:00
|
|
|
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v
|
2019-12-29 11:33:33 +01:00
|
|
|
- name: Test symlink
|
|
|
|
run: sudo ./v symlink
|
2020-02-16 16:13:45 +01:00
|
|
|
- name: Ensure thirdparty/cJSON/cJSON.o is compiled, before running tests.
|
|
|
|
run: ./v examples/json.v
|
2019-12-29 11:33:33 +01:00
|
|
|
- name: Set up pg database
|
|
|
|
run: |
|
|
|
|
brew services start postgresql
|
|
|
|
sleep 3
|
|
|
|
psql -d postgres -c 'select rolname from pg_roles'
|
|
|
|
psql -d postgres -c 'create database customerdb;'
|
|
|
|
psql -d customerdb -f examples/database/pg/mydb.sql
|
|
|
|
- name: Run network tests
|
|
|
|
run: ./v -d network test vlib/
|
|
|
|
|
|
|
|
|
2020-01-16 18:16:11 +01:00
|
|
|
network-windows-msvc:
|
2019-12-29 11:33:33 +01:00
|
|
|
runs-on: windows-2019
|
|
|
|
env:
|
|
|
|
VFLAGS: -cc msvc
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
echo %VFLAGS%
|
|
|
|
echo $VFLAGS
|
|
|
|
.\make.bat -msvc
|
|
|
|
- name: Run network tests
|
|
|
|
run: ./v -d network test vlib/
|