File tree 4 files changed +45
-0
lines changed
4 files changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ - name : ' Update Tags'
2
+ uses : cssnr/update-version-tags-action@v1
3
+ with :
4
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments