Skip to content

Commit 9ce1e73

Browse files
committed
Initial commit
0 parents  commit 9ce1e73

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.github/workflows/tags.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- name: 'Update Tags'
2+
uses: cssnr/update-version-tags-action@v1
3+
with:
4+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Whitespace-only changes.

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Setup Vcpkg Action
2+
3+
GitHub Action to set up vcpkg tool in your GitHub Actions workflows.
4+
It does not checkout a registry.
5+
6+
## Usage
7+
8+
```yaml
9+
steps:
10+
- uses: open-vcpkg/setup-vcpkg@v1
11+
```
12+
13+
## Outputs
14+
15+
Sets the following environment variables:
16+
- `VCPKG_ROOT`: Path to vcpkg installation

action.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Setup Vcpkg'
2+
description: 'Initialize vcpkg tool, does not checkout the registry'
3+
author: 'Matthias Kuhn'
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: Setup vcpkg
9+
if: runner.os != 'Windows'
10+
shell: bash
11+
run: |
12+
export VCPKG_ROOT=$HOME/.vcpkg
13+
wget https://aka.ms/vcpkg-init.sh -O /tmp/vcpkg-init.sh
14+
. /tmp/vcpkg-init.sh
15+
echo "VCPKG_ROOT=$VCPKG_ROOT" >> $GITHUB_ENV
16+
echo "$VCPKG_ROOT" >> $GITHUB_PATH
17+
18+
- name: Setup vcpkg
19+
if: runner.os == 'Windows'
20+
shell: powershell
21+
run: |
22+
$env:VCPKG_ROOT = "C:/.vcpkg"
23+
iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
24+
echo "VCPKG_ROOT=$env:VCPKG_ROOT" >> $env:GITHUB_ENV
25+
echo "$env:VCPKG_ROOT" >> $env:GITHUB_PATH

0 commit comments

Comments
 (0)