Skip to content

Commit

Permalink
Auto update builtin-baseline for VKPKG (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
JNechaevsky authored Nov 7, 2024
1 parent beb5511 commit e92b23b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Install vcpkg
- name: Get latest VCPKG commit
shell: bash
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
export LATEST_COMMIT=$(git rev-parse HEAD)
echo "LATEST_COMMIT=$LATEST_COMMIT" >> $GITHUB_ENV
- name: Update builtin-baseline in vcpkg.json
shell: bash
run: |
jq --arg commit "$LATEST_COMMIT" '. + {"builtin-baseline": $commit}' vcpkg.json > temp.json && mv temp.json vcpkg.json
- name: Install vcpkg
run: |
.\vcpkg\bootstrap-vcpkg.bat
- name: Install Dependencies with vcpkg
Expand Down
1 change: 0 additions & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "cry",
"version": "1.0",
"builtin-baseline": "7fd612ee1c57192d49028ed6a922e5e8bdb257f3",
"dependencies": [
"sdl2",
{
Expand Down

0 comments on commit e92b23b

Please sign in to comment.