From a7dfc867992c9e744fd6eae3a11abcc03324d9c9 Mon Sep 17 00:00:00 2001 From: Sam Morley <41870650+inakleinbottle@users.noreply.github.com> Date: Fri, 13 Dec 2024 12:43:11 +0000 Subject: [PATCH] Add GitHub workflow to update vcpkg dependencies (#184) 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. --- .github/workflows/update-dependencies.yml | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/update-dependencies.yml diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml new file mode 100644 index 000000000..2b8ad91bd --- /dev/null +++ b/.github/workflows/update-dependencies.yml @@ -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 \ No newline at end of file