Skip to content
play

GitHub Action

Setup V environment

v1.2.2 Latest version

Setup V environment

play

Setup V environment

Setup a V environment and add it to the PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup V environment

uses: nocturlab/setup-vlang-action@v1.2.2

Learn more about this action in nocturlab/setup-vlang-action

Choose a version

This repository will be ARCHIVED soon !! Check the official action

Setup V environment Latest version Build Tests

GitHub Action that allows you to compile V programs without the use of Docker (because it's very slow).

Usage

You just have to setup your workflow like this:

# file: .github/workflows/vlang-build-pipeline.yml
name: vlang-build-pipeline

on:
  push:
    paths-ignore:
      - '**.md'

jobs:
  run:
    name: Run
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@v2
    - name: Set up V version latest
      uses: nocturlab/setup-vlang-action@v1
      with:
        v-version: latest
      id: v
    - name: Build repository app
      run: v .
    - name: Run V tests
      run: v test .

Inputs

  • v-version: V version. Can be either exact version number, latest (by default), or master (use the master branch instead of release).