prantlf/Setup V (Vlang) Build
Setup a V (Vlang) environment by downloading and unpacking or building the V compiler to the PATH.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| version | Specify the version of V to use. It can be `latest` (the latest published semantic version), `weekly` (the latest weekly release), `master` (the latest commit in the `master` branch), a semantic version number (tag name) or a commit hash. | — | latest |
| use-cache | Set to `false` to ignore the cache and always perform the full installation, either by downloading and unpacking a binary, or by downloading sources and building. | — | true |
| force-build | Set to `true` to always build V from sources, even if the binary archive is available. | — | false |
| install-dependencies | Set to `false` to prevent module dependencies from `v.mod` from being installed automatically. | — | true |
| global-dependencies | Set to `false` to install module dependencies from `v.mod` to `./modules` instead of to `~/.vmodules`. | — | true |
| modules-dir | Set the directory for the locally installed dependencies. It is `src/modules` if `src` exists, otherwise `modules`. | — | "" |
| token | Authorization token to inspect releases and commits in the `vlang/v` repository. Either a GitHub personal access token or the GitHub workflow token. And if even that is not set, the GitHub workflow token from the action-execution context will be used as default. | — | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| version | The actually installed version of V, as returned by `v -V`. |
| bin-path | The complete path to the directory with the V compiler. |
| v-bin-path | The complete path to the V compiler executable. |
| used-cache | A boolean value indicating if the installation succeeded from the cache. |
| was-built | A boolean value indicating if the V compiler was built from sources. |