vlang/Setup Vlang
Setup a Vlang environment downloading V and adding it to the PATH
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | 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) | — | ${{ github.token }} |
| version | Version to use. It can be the branch, tag or SHA to checkout from the V repository. Examples: 0.4.4, weekly.2024.06 | — | — |
| version-file | File containing the version to use. It can contain the branch, tag or SHA to checkout from the V repository. Examples: .v-version | — | — |
| check-latest | 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. | — | false |
| stable | Set this option if you want the action to use the stable version of V (latest GitHub release tag) | — | false |
| architecture | Target architecture for V to use. Examples: x86_64, arm64, aarch64, riscv64. Uses the system architecture by default. | — | — |
| path | Directory to install V into. Defaults to ~/vlang/vlang_{platform}_{arch} | — | "" |
| cache | Cache the V executable to speed up subsequent runs. Only applies when the version input is specified. | — | true |
| clean | Remove non-essential files (examples, tests, benchmarks, docs) from the V installation directory after building. Helps prevent interference with project-level V commands like fmt -verify. | — | true |
Outputs
| name | description |
|---|---|
| bin-path | Path to the directory that contains the V binary |
| v-bin-path | Path to the V binary |
| version | Version of V installed |
| architecture | Architecture that was used to install V |