-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: added a github action to check if the vendored deps should be upd…
…ated
- Loading branch information
Showing
8 changed files
with
52 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
name: Check Declared Dependencies Are Vendored | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
check-vendor: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Verify declared dependencies are vendored | ||
working-directory: ./antidotum/tergo/src/rust | ||
run: | | ||
sh ./check_vendor_updates.sh |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
members = ["aqua", "spongia", "balnea", "unguentum", "tergo", "scopa"] | ||
resolver = "2" | ||
exclude = ["antidotum"] |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
vendor/ | ||
in_repo | ||
downloaded | ||
repo_vendor/ |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ toml = "0.8.19" | |
extendr-api = "*" | ||
|
||
[workspace] | ||
exclude = ["vendor", "repo_vendor"] |
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,23 @@ | ||
#!bin/bash | ||
|
||
cargo update | ||
cargo vendor | ||
|
||
mkdir repo_vendor | ||
tar -xvf vendor.tar.xz -C repo_vendor | ||
|
||
find ./vendor -name 'Cargo.toml' -exec cargo generate-lockfile --manifest-path {} \; | ||
find ./vendor -name 'Cargo.toml' -exec cargo pkgid --manifest-path {} \; | rev | cut -d'/' -f1 | rev | sort >downloaded | ||
find ./repo_vendor -name 'Cargo.toml' -exec cargo generate-lockfile --manifest-path {} \; | ||
find ./repo_vendor -name 'Cargo.toml' -exec cargo pkgid --manifest-path {} \; | rev | cut -d'/' -f1 | rev | sort >in_repo | ||
|
||
if [ ! -f downloaded ] || [ ! -f in_repo ]; then | ||
echo "Error: downloaded or in_repo file not found" | ||
exit 1 | ||
fi | ||
|
||
if ! diff downloaded in_repo; then | ||
echo "Error: vendored dependencies are not the same" | ||
echo "Please run 'vendor.sh' and commit the changes" | ||
exit 1 | ||
fi |
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
Binary file not shown.