-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling souffle-lang/souffle GitHub dependency graph with vcpk (#2427)…
… (#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
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters