Skip to content

Commit

Permalink
sv2-header-check cmts
Browse files Browse the repository at this point in the history
  • Loading branch information
rrybarczyk committed Jul 5, 2024
1 parent 8e15323 commit 223157c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/sv2-header-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
# (2) takes the SHA1 hash of the `sv2.h` file in `protocols/v2/sv2-ffi`
# (3) executes `build_header.sh` to generate the `sv2.h` based on the contents of the PR
# (4) takes the SHA1 hash of the `sv2.h` file generated by `build_header.sh`
# (5) compares the hashes of each `sv2.h`, if they are equal then the GitHub Action passes, otherwise
# the GitHub Action fails
#
# This script is called by `.github/workflows/sv2-header-check.yaml` on every PR onto the main branch.
# (5) compares the hashes of each `sv2.h`, if they are equal then the GitHub Action passes,
# otherwise the GitHub Action fails
#
# This script is called by `.github/workflows/sv2-header-check.yaml` on every PR onto the main
# branch.

cargo install --version 0.20.0 cbindgen

Expand All @@ -22,7 +22,9 @@ set -ex
# cbindgen -V

echo $PWD
# Remove the sv2.h generated from previous runs if exists
rm -f scripts/sv2.h

cd protocols/v2/sv2-ffi
SHA1_1=$(sha1sum sv2.h)
cd ../../../scripts
Expand Down

0 comments on commit 223157c

Please sign in to comment.