Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
play

GitHub Action

Setup V environment

v1.0.0

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.0.0

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

Choose a version

setup-vlang-action

Github Action that allow 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 VLang version 0.1.24
      uses: nocturlab/setup-vlang-action@1.0.0
      with:
        v-version: 0.1.24
      id: v
    - name: Build repository app
      run: v build .
    - name: Run VLang tests
      run: v test .