Skip to content

Commit

Permalink
Add GitHub workflow to update vcpkg dependencies (#184)
Browse files Browse the repository at this point in the history
This workflow triggers on changes to vcpkg.json or vcpkg-configuration.json in the main branch. It sets up vcpkg, bootstraps it, and performs a dry-run to build the dependency graph. This ensures dependency updates are tracked and managed automatically.
  • Loading branch information
inakleinbottle authored Dec 13, 2024
1 parent f73f901 commit a7dfc86
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: update-dependencies.yml

on:
push:
branches: ["main"]
paths:
- vcpkg.json
- vcpkg-configuration.json

permissions:
contents: write

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VCPKG_FEATURE_FLAGS: dependencygraph

jobs:
vcpkg-deps:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: setup-vcpkg
uses: actions/checkout@v4
with:
repository: https://github.com/Microsoft/vcpkg.git
path: tools/vcpkg

- name: bootstrap vcpkg
run: ${{ github.workspace }}/tools/vcpkg/bootstrap_vcpkg.sh

- name: build-dep-graph
run: ${{ github.workspace }}/tools/vcpkg/vcpkg install --dry-run

0 comments on commit a7dfc86

Please sign in to comment.