Skip to content

Commit

Permalink
Add CMake tests to ci/test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Nov 4, 2022
1 parent 35a1e17 commit 83bf87b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,22 @@ main() {

rm -rf "${td}"
fi

# tst cmake support
td="$(mkcargotemp -d)"

git clone --depth 1 https://github.com/cross-rs/rust-cmake-hello-world "${td}"

pushd "${td}"
retry cargo fetch
if (( ${RUN:-0} )); then
cross_run --target "${TARGET}"
else
"${CROSS[@]}" build --target "${TARGET}" ${CROSS_FLAGS}
fi
popd

rm -rf "${td}"
}

cross_run() {
Expand Down

0 comments on commit 83bf87b

Please sign in to comment.