Skip to content

Commit

Permalink
Checkout to the branch HEAD explicitly in build-linux-substrate (pa…
Browse files Browse the repository at this point in the history
  • Loading branch information
rcny authored and ark0f committed Feb 27, 2023
1 parent 26cc796 commit f628a97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/ci/gitlab/pipeline/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ build-linux-substrate:
before_script:
- mkdir -p ./artifacts/substrate/
- !reference [.rusty-cachier, before_script]
# tldr: we need to checkout the branch HEAD explicitly because of our dynamic versioning approach while building the substrate binary
# see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
- git checkout -B "$CI_COMMIT_REF_NAME" "$CI_COMMIT_SHA"
script:
- rusty-cachier snapshot create
- WASM_BUILD_NO_COLOR=1 time cargo build --locked --release --verbose
Expand Down

0 comments on commit f628a97

Please sign in to comment.