snap: reenable i386, arm64, armhf architecture publishing#10386
Conversation
|
not sure though, if all these builds can be done in the same Docker image, have to check first. |
|
@ElOpio any ideas? https://gitlab.parity.io/parity/parity-ethereum/-/jobs/124182 |
|
@General-Beck this also fails on nightly, so probably unrelated |
TriplEight
left a comment
There was a problem hiding this comment.
ready to merge,
publish-snap issue resolved
|
|
||
| image: parity/rust:gitlab-ci | ||
|
|
||
| image: parity/rust-parity-ethereum-build:xenial |
There was a problem hiding this comment.
what's the logic behind changing this now?
There was a problem hiding this comment.
this docker image has been tested,
it's the preparation for using cache in docker volumes
| - artifacts/ | ||
|
|
||
| .determine_version: &determine_version | ||
| - VERSION="$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' Cargo.toml)" |
There was a problem hiding this comment.
was used only in publish-snap.sh so moved there.
Is there a reason for it to stay here?
There was a problem hiding this comment.
used only for publish snap
| - build-linux | ||
| tags: | ||
| - rust-stable | ||
| - linux-docker |
| else | ||
| ./parity tools hash $binary > $binary.sha3 | ||
| fi | ||
| rhash --sha256 $binary -o $binary.sha256 #do we still need this hash (SHA2)? |
There was a problem hiding this comment.
SHA256 is used for Vanity Service and Homebrew (Releases) And One-line Installer
| # prepare variables | ||
| VERSION=v"$(sed -r -n '1,/^version/s/^version = "([^"]+)".*$/\1/p' Cargo.toml)" | ||
| SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap" | ||
| CARGO_TARGET="$(ls artifacts)" |
There was a problem hiding this comment.
What? ls artifacts gives a reliable CARGO_TARGET?
There was a problem hiding this comment.
yes, from artifacts dir
| cp -v ethkey $SNAPCRAFT_PART_INSTALL/usr/bin/ethkey | ||
| cp -v ethstore $SNAPCRAFT_PART_INSTALL/usr/bin/ethstore | ||
| cp -v whisper $SNAPCRAFT_PART_INSTALL/usr/bin/whisper | ||
| stage-packages: [libc6, libudev1, libstdc++6, cmake, libdb5.3] |
There was a problem hiding this comment.
we added libc6 because it was failling without. It's working now?
There was a problem hiding this comment.
and it was the reason it failed here: https://github.com/paritytech/devops/issues/307
gabreal
left a comment
There was a problem hiding this comment.
haven't checked the snap config
| ./parity tools hash $binary > $binary.sha3 | ||
| fi | ||
| rhash --sha256 $binary -o $binary.sha256 #do we still need this hash (SHA2)? | ||
| rhash --sha3-256 $binary -o $binary.sha3 |
There was a problem hiding this comment.
hashes are different, is that okay?
% target/release/parity tools hash target/release/parity
58b49924c583b45871cac4077da8f99820a684df8cca9a81c742080e991f671d
% rhash --sha3-256 target/release/parity
95fcba97a2059bbae16f997c3ea7b6c6c0f9ef5990313f55eb8536a1b3bef9e3 target/release/parity
% rhash --sha256 target/release/parity
19c7ac31b99f5a45e6a4236367df18467321a3fc9f492c19f80cede098d47abf target/release/parity
There was a problem hiding this comment.
we can't use parity to calculate the hash for other architectures
|
|
||
| image: parity/rust:gitlab-ci | ||
|
|
||
| image: parity/rust-parity-ethereum-build:xenial |
There was a problem hiding this comment.
would prefer a separate pr for that, just in case one has to revert.
|
Needs a 2nd review. |
|
android parity-clib compiles now: https://gitlab.parity.io/parity/parity-ethereum/pipelines/31445 |
|
The latest pipeline is all green: https://gitlab.parity.io/parity/parity-ethereum/pipelines/31461 |
…um#10386) * snap: reenable i386, arm64, armhf architecture publishing * gitlab: fix indent * gitlab: fix yml syntax * Linker for crosscomile * fix target to linker * new docker image * fix lint, add build to this PR * calc SHA3 using rhash * add new images for i386, armhf * show snap target & artifacts * set CARGO_TARGET for publish snap * move detect Version to publish snap * rm libc6 dep from snap-template up pub-snap script * clean up cargo config before add linker * move linker config to docker images
…um#10386) * snap: reenable i386, arm64, armhf architecture publishing * gitlab: fix indent * gitlab: fix yml syntax * Linker for crosscomile * fix target to linker * new docker image * fix lint, add build to this PR * calc SHA3 using rhash * add new images for i386, armhf * show snap target & artifacts * set CARGO_TARGET for publish snap * move detect Version to publish snap * rm libc6 dep from snap-template up pub-snap script * clean up cargo config before add linker * move linker config to docker images
* no-git for publish jobs, empty artifacts dir (#10393) * no-git for publish jobs, empty artifacts dir * fix syntax * prettiness * fix prettiness * should get rid of git in publishing * snap: reenable i386, arm64, armhf architecture publishing (#10386) * snap: reenable i386, arm64, armhf architecture publishing * gitlab: fix indent * gitlab: fix yml syntax * Linker for crosscomile * fix target to linker * new docker image * fix lint, add build to this PR * calc SHA3 using rhash * add new images for i386, armhf * show snap target & artifacts * set CARGO_TARGET for publish snap * move detect Version to publish snap * rm libc6 dep from snap-template up pub-snap script * clean up cargo config before add linker * move linker config to docker images * tx pool: always accept local transactions (#10375) * tx pool: always accept local transactions * tx pool: `choose` local txs with same sender and nonce * Fix to_pod storage trie value decoding (#10368)
* no-git for publish jobs, empty artifacts dir (#10393) * no-git for publish jobs, empty artifacts dir * fix syntax * prettiness * fix prettiness * should get rid of git in publishing * Fix to_pod storage trie value decoding (#10368) * snap: reenable i386, arm64, armhf architecture publishing (#10386) * snap: reenable i386, arm64, armhf architecture publishing * gitlab: fix indent * gitlab: fix yml syntax * Linker for crosscomile * fix target to linker * new docker image * fix lint, add build to this PR * calc SHA3 using rhash * add new images for i386, armhf * show snap target & artifacts * set CARGO_TARGET for publish snap * move detect Version to publish snap * rm libc6 dep from snap-template up pub-snap script * clean up cargo config before add linker * move linker config to docker images
No description provided.