https://github.com/friendlyanon/setup-vcpkg
Set vcpkg up in GitHub Actions with caching
https://github.com/friendlyanon/setup-vcpkg
Last synced: 8 months ago
JSON representation
Set vcpkg up in GitHub Actions with caching
- Host: GitHub
- URL: https://github.com/friendlyanon/setup-vcpkg
- Owner: friendlyanon
- License: mit
- Created: 2021-07-06T18:13:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-10T21:34:44.000Z (about 1 year ago)
- Last Synced: 2025-05-01T09:16:51.758Z (8 months ago)
- Language: TypeScript
- Size: 3.1 MB
- Stars: 25
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Setup vcpkg [![CI build][1]][2]
This is a GitHub action that sets vcpkg up in GitHub Actions and caches it.
See the [action.yaml](action.yaml) file for inputs and outputs.
## Example usage
- uses: friendlyanon/setup-vcpkg@v1
with: { committish: 63aa65e65b9d2c08772ea15d25fb8fdb0d32e557 }
- name: Run CMake with manifest mode vcpkg
shell: bash
run: cmake -B build
-D "CMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
# What does it do?
Values in angle brackets (`<>`) are inputs.
* Sets the `VCPKG_ROOT` and `VCPKG_DEFAULT_BINARY_CACHE` env variables to
`` and `/.cache` respectively.
* Attempts to restore vcpkg from the cache using ``, `` and
``.
* If successful, then stop.
* If `` was provided, clones `` into `` and checks
`` out. Otherwise, a git submodule must exist at ``.
* Runs `bootstrap-vcpkg.bat` on Windows or `bootstrap-vcpkg.sh` on *nix
systems.
If `` is set to `false`, then the cache related steps are skipped. Only
the executable and binary cache are stored in the GitHub Actions cache.
# License
[MIT License](LICENSE)
[1]: https://github.com/friendlyanon/setup-vcpkg/workflows/CI/badge.svg
[2]: https://github.com/friendlyanon/setup-vcpkg/actions?query=workflow%3ACI+branch%3Amaster