https://github.com/vlang/setup-v
https://github.com/vlang/setup-v
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vlang/setup-v
- Owner: vlang
- License: mit
- Created: 2022-02-15T07:38:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T10:54:35.000Z (over 2 years ago)
- Last Synced: 2025-08-16T01:10:15.673Z (12 months ago)
- Language: TypeScript
- Size: 2.43 MB
- Stars: 29
- Watchers: 28
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-v - setup-v - GitHub Action to install and use V in your workflow. Available on the [marketplace](https://github.com/marketplace/actions/setup-vlang). (Other / GitHub Actions)
README
Setup V
[vlang.io](https://vlang.io) |
[Contributing](https://github.com/vlang/setup-v/blob/main/CONTRIBUTING.md)
[![CI][workflowbadge]][workflowurl]
[![License: MIT][licensebadge]][licenseurl]
GitHub Action that allows you to setup a V environment.
## Usage
```yaml
- uses: vlang/setup-v@v1.4
with:
# Personal access token (PAT) used to fetch the repository. The PAT is configured
# with the local git config, which enables your scripts to run authenticated git
# commands. The post-job step removes the PAT.
#
# We recommend using a service account with the least permissions necessary.
# Also when generating a new PAT, select the least scopes necessary.
#
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
#
# Default: ${{ github.token }}
token: ''
# Version to use. It can be the branch, tag or SHA to checkout from the V repository.
# Examples: 0.2.4, weekly.2022.07
version: ''
# File containing the version to use. It can contain the branch, tag or SHA to checkout from the V repository
# Examples: .v-version
version-file: ''
# Set this option if you want the action to check for the latest available version of V.
# If `stable` is false, it will check for the latest commit from the default branch.
check-latest: false
# Set this option if you want the action to use the stable version of V.
# Will be ignored if `check-latest` is false.
stable: false
# Target architecture for V to use. Examples: linux, macos, windows. Will use system architecture by default.
architecture: ''
```
## Output
This action will output the following variables:
- `bin-path`: Path to the directory that contains the V binary.
- `v-bin-path`: Path to the V binary.
- `version`: Version of V that was used.
- `architecture`: Architecture that was used to install V.
## Contributors
Made with [contributors-img](https://contrib.rocks).
[workflowbadge]: https://github.com/vlang/setup-v/actions/workflows/ci.yml/badge.svg
[licensebadge]: https://img.shields.io/badge/License-MIT-blue.svg
[workflowurl]: https://github.com/vlang/setup-v/actions/workflows/ci.yml
[licenseurl]: https://github.com/vlang/setup-v/blob/main/LICENSE