Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 02a9dea

Browse files
authored
Checkout to the branch HEAD explicitly in build-linux-substrate (#12876)
1 parent d0540a7 commit 02a9dea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/ci/gitlab/pipeline/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ build-linux-substrate:
6464
before_script:
6565
- mkdir -p ./artifacts/substrate/
6666
- !reference [.rusty-cachier, before_script]
67+
# tldr: we need to checkout the branch HEAD explicitly because of our dynamic versioning approach while building the substrate binary
68+
# see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
69+
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
6770
script:
6871
- rusty-cachier snapshot create
6972
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release --verbose

0 commit comments

Comments
 (0)