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

Commit 77d2ca1

Browse files
author
Michael Müller
authored
Merge pull request #365 from paritytech/cmichi-fix-binaryen-release-path
Fix path to `wasm-opt` binary in `binaryen` release
2 parents 4fce0eb + 5d9386d commit 77d2ca1

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

dockerfiles/ink-ci-linux/Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,16 @@ RUN set -eux; \
4040
mv codecov /usr/local/bin/codecov && \
4141
rm -f codecov.SHA256SUM codecov.SHA256SUM.sig && \
4242
# `binaryen` is needed by `cargo-contract` for optimizing Wasm files.
43-
# We fetch the latest release which contains a Linux binary. There is
44-
# currently an issue with not all releases containing a Linux binary
45-
# (https://github.com/WebAssembly/binaryen/issues/4148). Once that one
46-
# is fixed we can always use the latest release again.
43+
# We fetch the latest release which contains a Linux binary.
4744
curl --silent https://api.github.com/repos/WebAssembly/binaryen/releases | \
4845
egrep --only-matching 'https://github.com/WebAssembly/binaryen/releases/download/version_[0-9]+/binaryen-version_[0-9]+-x86_64-linux.tar.gz' | \
4946
head -n1 | \
5047
xargs curl -L -O && \
51-
tar -xvzf binaryen-version_*-x86_64-linux.tar.gz && \
48+
tar -xvzf binaryen-*-x86_64-linux.tar.gz && \
5249
rm binaryen-version_*-x86_64-linux.tar.gz && \
53-
chmod +x binaryen-version_*/bin/wasm-opt && \
54-
mv binaryen-version_*/bin/wasm-opt /usr/local/bin/ && \
55-
rm -rf binaryen-version_*/ && \
50+
chmod +x binaryen-*/bin/wasm-opt && \
51+
mv binaryen-*/bin/wasm-opt /usr/local/bin/ && \
52+
rm -rf binaryen-*/ && \
5653
# The supported Rust nightly version must support the following components
5754
# to allow for a functioning CI pipeline:
5855
#

0 commit comments

Comments
 (0)