v/.github/workflows/ci.yml

73 lines
2.0 KiB
YAML
Raw Normal View History

2019-09-20 18:05:53 +02:00
name: CI
on: [push, pull_request]
jobs:
build-osx:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macOS-10.14]
node-version: [12.x]
2019-09-20 18:05:53 +02:00
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and test
run: |
brew install freetype glfw openssl
export LIBRARY_PATH="$LIBRARY_PATH:/usr/local/opt/openssl/lib/"
make
./v -o v compiler
./v test v
echo "fn main(){ println('Hello from V.js') }" > hi.v
./v -o hi.js hi.v
node hi.js
git clone --depth 1 https://github.com/vlang/vid.git
cd vid && ../v -debug -o vid .
build-ubuntu:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
node-version: [12.x]
2019-09-20 18:05:53 +02:00
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Build and test
run: |
sudo apt-get update && sudo apt-get install -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev
make
./v -o v compiler
./v test v
echo "fn main(){ println('Hello from V.js') }" > hi.v
./v -o hi.js hi.v
node hi.js
build-windows-gcc:
2019-09-20 18:05:53 +02:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
2019-09-20 18:05:53 +02:00
steps:
- uses: actions/checkout@v1
- name: Build and test
run: |
git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries.git thirdparty/freetype/
make -gcc
./v.exe test v
build-windows-msvc:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019]
steps:
- uses: actions/checkout@v1
- name: Build and test
env:
VFLAGS: -os msvc
run: |
git clone --depth=1 https://github.com/ubawurinna/freetype-windows-binaries.git thirdparty/freetype/
make -msvc
2019-09-20 18:05:53 +02:00
./v.exe test v