Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.41 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.41 KB

dev-scripts

This repository provides common scripts for C/C++ development. Each script is a single file under scripts/, which a project downloads into its own repository rather than vendoring this repository. docs/about-scripts describes the usage of each script.

Script Purpose
vcpkg-workspace.cmake Checks out vcpkg and vcpkg overlays as a project specifies them, and installs the dependencies of the project

The GitHub Actions under actions/ run the scripts of the same commit, therefore a workflow uses them without a download.

Action Purpose
actions/vcpkg-workspace Runs vcpkg-workspace.cmake install and caches the binary packages of vcpkg

Download

A project downloads a script into its scripts directory and ignores it in scripts/.gitignore. The following command downloads a script in a POSIX shell:

curl -fsSL -o scripts/<script> https://raw.githubusercontent.com/stdware/dev-scripts/main/scripts/<script>

The following command downloads a script in PowerShell or in cmd:

powershell -Command "Invoke-WebRequest -OutFile scripts/<script> https://raw.githubusercontent.com/stdware/dev-scripts/main/scripts/<script>"

Replace main with a commit hash to download a fixed version.

License

MIT. See LICENSE.