v/.github/workflows/periodic.yml

78 lines
2.4 KiB
YAML
Raw Normal View History

name: Periodic
on:
schedule:
- cron: '31 1,12 * * *'
2020-02-09 10:08:04 +01:00
jobs:
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
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
- 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
- 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: |
##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
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
- name: Build V
run: make -j4 && ./v -cg -o v cmd/v
- name: Build V using V
run: ./v -o v2 cmd/v && ./v2 -o v3 cmd/v
- name: Test symlink
run: sudo ./v symlink
- name: Ensure thirdparty/cJSON/cJSON.o is compiled, before running tests.
run: ./v examples/json.v
- 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:
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/