Skip to content

Commit

Permalink
CI: Update vcpkg during CI system initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Apr 14, 2024
1 parent 639737f commit 4ba87c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/initialize-linux-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ runs:
- name: Setup OpenGL
shell: bash
run: sudo apt-get install libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev
- name: Run git fetch on vcpkg
shell: bash
run: cd "$VCPKG_INSTALLATION_ROOT" && git checkout . && git fetch && git pull && ./bootstrap-vcpkg.sh
- name: Cache Vcpkg
id: cache-vcpkg
uses: actions/cache@v3
with:
path: ~/.cache/vcpkg/archives
key: ${{ runner.os }}-vcpkg-cache
key: ${{ runner.os }}-vcpkg-cache
8 changes: 8 additions & 0 deletions .github/actions/initialize-windows-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ runs:
uses: ashutoshvarma/[email protected]
with:
version: 1.10.0
- name: Update vcpkg
shell: pwsh
run: |
Push-Location "$env:VCPKG_INSTALLATION_ROOT"
git fetch
git pull
./bootstrap-vcpkg.bat
Pop-Location
- name: Cache Vcpkg
id: cache-vcpkg
uses: actions/cache@v3
Expand Down

0 comments on commit 4ba87c6

Please sign in to comment.