Skip to content

CI

CI #3362

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
- cron: '31 1,12 * * *'
jobs:
code-formatting:
runs-on: ubuntu-20.04
steps:
- name: Checkout V
uses: actions/checkout@v4
with:
repository: vlang/v
- name: Checkout ved
uses: actions/checkout@v4
with:
path: ved
- name: Build V
run: make && ./v symlink -githubci
- name: v vet
run: v vet ved/
- name: v fmt -verify
run: v fmt -verify ved/
check-ubuntu:
runs-on: ubuntu-20.04
steps:
- name: Checkout V
uses: actions/checkout@v4
with:
repository: vlang/v
- name: Build V
run: make && ./v symlink -githubci
- name: Checkout ved
uses: actions/checkout@v4
with:
path: ved
- name: Install dependencies
run: |
v retry -- sudo apt-get update
v retry -- sudo apt-get install --quiet -y \
libfreetype6-dev libglfw3-dev libxi-dev libxcursor-dev
- name: Build ved
run: |
cd ved
v -prod .
v -autofree .
check-macos:
runs-on: macos-latest
steps:
- name: Checkout V
uses: actions/checkout@v4
with:
repository: vlang/v
- name: Checkout ved
uses: actions/checkout@v4
with:
path: ved
- name: Build V
run: make && ./v symlink -githubci
- name: Build ved
run: |
cd ved
v .
v -prod .
check-windows:
runs-on: windows-2019
steps:
- name: Checkout V
uses: actions/checkout@v4
with:
repository: vlang/v
- name: Checkout ved
uses: actions/checkout@v4
with:
path: ved
- name: Build V
run: |
.\make.bat -gcc
.\v.exe symlink -githubci
- name: Build ved
run: |
cd ved
v -prod .