Skip to content

Commit

Permalink
Enabling souffle-lang/souffle GitHub dependency graph with vcpk (#2427)…
Browse files Browse the repository at this point in the history
… (#2428)

integrate GitHub dependency-graph

For the story, a GitHub representative contacted me to test their new dependency graph integration for C++ projects based on vcpkg.

Instructions that I followed:
https://learn.microsoft.com/en-us/vcpkg/github-integration#dependency-graph

Relates to:
https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-supply-chain-security
  • Loading branch information
quentin authored Aug 9, 2023
1 parent 0ad4109 commit 63d6684
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/VS-CI-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
# Use vcpkg to install devel library dependencies.
- name: Library Dependencies (vcpkg)
uses: lukka/run-vcpkg@v10
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: 'a7b6122f6b6504d16d96117336a0562693579933'
vcpkgGitCommitId: '56954f1db97f38635782d5ad7cdfd45d2731c854'

- name: Create Build Directory
working-directory: ${{github.workspace}}
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/populate-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Populate dependencies

on:
push:
branches: [ master ]
workflow_dispatch:

permissions:
contents: write

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

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Checkout vcpkg
run: |
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
git checkout 56954f1db97f38635782d5ad7cdfd45d2731c854
- name: Bootstrap vcpkg
working-directory: vcpkg
run: ./bootstrap-vcpkg.sh

# This will execute a dry-run, meaning that libraries will not be built and
# installed, but they will still be reported to the GitHub dependency graph.
# This step assumes `vcpkg` has been bootstrapped (run `./vcpkg/bootstrap-vcpkg`)
- name: Run vcpkg
run: ${{ github.workspace }}/vcpkg/vcpkg install --dry-run --debug

2 changes: 1 addition & 1 deletion vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"version": "3.40.1"
}
],
"builtin-baseline": "a7b6122f6b6504d16d96117336a0562693579933"
"builtin-baseline": "56954f1db97f38635782d5ad7cdfd45d2731c854"
}

0 comments on commit 63d6684

Please sign in to comment.