Skip to content

Commit

Permalink
fix(ci): returnvalue of c header check
Browse files Browse the repository at this point in the history
  • Loading branch information
chrjabs committed Dec 13, 2024
1 parent 207362a commit 940035b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion capi/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using_namespaces = []
sys_includes = []
includes = []
no_includes = false
after_includes = "#define RUSTSAT_VERSION 0.6.1\n#define RUSTSAT_VERSION_MAJOR 0\n#define RUSTSAT_VERSION_MINOR 6\n#define RUSTSAT_VERSION_PATCH 1"
after_includes = ""


############################ Code Style Options ################################
Expand Down
3 changes: 3 additions & 0 deletions scripts/verify-c-header.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ TMP_CONF=$(mktemp XXXXXXXXXX.cbindgen.toml)
sed "s/after_includes = \"\"/after_includes = \"#define RUSTSAT_VERSION ${VERSION}\\\n#define RUSTSAT_VERSION_MAJOR ${MAJOR}\\\n#define RUSTSAT_VERSION_MINOR ${MINOR}\\\n#define RUSTSAT_VERSION_PATCH ${PATCH}\"/g" capi/cbindgen.toml > ${TMP_CONF}

cbindgen -c ${TMP_CONF} --crate rustsat-capi -o capi/rustsat.h --verify
RET=$?

rm ${TMP_CONF}

exit ${RET}

0 comments on commit 940035b

Please sign in to comment.