mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
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
This commit is contained in:
committed by
Bastian Köcher
parent
f4a3056167
commit
9051945505
@@ -15,7 +15,7 @@ stages:
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: fetch
|
GIT_STRATEGY: fetch
|
||||||
GIT_DEPTH: "3"
|
GIT_DEPTH: 100
|
||||||
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
|
CARGO_HOME: "/ci-cache/${CI_PROJECT_NAME}/cargo/${CI_JOB_NAME}"
|
||||||
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
|
SCCACHE_DIR: "/ci-cache/${CI_PROJECT_NAME}/sccache"
|
||||||
CARGO_INCREMENTAL: 0
|
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
|
# check if the wasm sources changed
|
||||||
if ! git diff --name-only origin/master...${CI_COMMIT_SHA} \
|
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'
|
| grep -q -e '^bin/node/src/runtime' -e '^frame/' -e '^primitives/sr-' | grep -v -e '^primitives/sr-arithmetic/fuzzer'
|
||||||
|
|||||||
Reference in New Issue
Block a user