Zernit/.github/workflows.krey/Vlang.yml

91 lines
2.7 KiB
YAML
Raw Normal View History

2020-02-10 16:14:58 +01:00
# Workflow for vlang
2020-02-10 17:56:08 +01:00
name: vlang
2020-02-10 15:03:01 +01:00
# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
paths:
2020-02-10 16:14:58 +01:00
- '**.v'
2020-02-10 15:03:01 +01:00
jobs:
2020-02-10 16:14:58 +01:00
# Kernel specific builds
2020-02-11 21:49:33 +01:00
build-ubuntu-vlang:
runs-on: ubuntu-latest
2020-02-10 15:03:01 +01:00
steps:
- uses: actions/checkout@v2
2020-02-11 21:49:33 +01:00
- name: Install dependencies
run: |
if ! command -v v >/dev/null; then
wget https://github.com/vlang/v/releases/latest/download/v_linux.zip -O "$HOME/.cache/vlang.zip"
[ ! -d /opt/vlang ] && mkdir /opt/vlang
2020-02-11 22:16:58 +01:00
[ ! -d "$HOME/.cache/" ] && mkdir "$HOME/.cache/"
2020-02-11 21:49:33 +01:00
[ ! -f /opt/vlang/v ] && unzip "$HOME/.cache/vlang.zip" -d /opt/vlang/v
[ ! -x /usr/bin/v ] && ln -sf /usr/bin/v /opt/vlang/v
fi
- name: Building..
run: make build-vlang
build-darwin-vlang:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
if ! command -v v >/dev/null; then
wget https://github.com/vlang/v/releases/latest/download/v_linux.zip -O "$HOME/.cache/vlang.zip"
[ ! -d /opt/vlang ] && mkdir /opt/vlang
2020-02-11 22:16:58 +01:00
[ ! -d "$HOME/.cache/" ] && mkdir "$HOME/.cache/"
2020-02-11 21:49:33 +01:00
[ ! -f /opt/vlang/v ] && unzip "$HOME/.cache/vlang.zip" -d /opt/vlang/v
[ ! -x /usr/bin/v ] && ln -sf /usr/bin/v /opt/vlang/v
fi
- name: Building..
run: make build-vlang
build-windows-vlang:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
ECHO fixme
EXIT
- name: Building..
2020-02-10 16:14:58 +01:00
run: make build-vlang
# Docker builds
build-vlang-debian:
runs-on: ubuntu-latest
2020-02-10 15:07:28 +01:00
steps:
- uses: docker://debian/testing:latest
- uses: actions/checkout@v2
- name: building..
2020-02-10 16:14:58 +01:00
run: make build-vlang
build-vlang-fedora:
runs-on: ubuntu-latest
steps:
- uses: docker://fedora/latest:latest
- uses: actions/checkout@v2
- name: building..
run: make build-vlang
# Run tests
check-vlang:
2020-02-10 15:03:01 +01:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: running tests..
2020-02-10 16:14:58 +01:00
run: make check-vlang
# Benchmarks
bench-vlang:
2020-02-10 15:03:01 +01:00
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-18.04]
steps:
- uses: actions/checkout@v2
- name: running benchmarks..
2020-02-10 16:14:58 +01:00
run: make bench-vlang