Skip to content
Snippets Groups Projects
Commit 90519455 authored by gabriel klawitter's avatar gabriel klawitter Committed by Bastian Köcher
Browse files

ci: increase git cloning depth to 100 (#4481)

* ci: increase git cloning depth to 100

* check_runtime: verify shallow git clones to contain origin/master

* check_runtime: fetch master branch
parent f4a30561
Branches
No related merge requests found
......@@ -15,7 +15,7 @@ stages:
variables:
GIT_STRATEGY: fetch
GIT_DEPTH: "3"
GIT_DEPTH: 100
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
CARGO_INCREMENTAL: 0
......
......@@ -27,6 +27,15 @@ github_label () {
git fetch --depth=${GIT_DEPTH:-100} origin master
# check if master is part of this checkout
if ! git log -n 1 origin/master
then
echo "unable to check for runtime changes: checkout does not contain origin/master branch"
exit 3
fi
# check if the wasm sources changed
if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \
| grep -q -e '^bin/node/src/runtime' -e '^frame/' -e '^primitives/sr-' | grep -v -e '^primitives/sr-arithmetic/fuzzer'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment