Skip to content

Commit 6df5342

Browse files
authored
Merge pull request #12697 from ethereum/revive-wasm-rebuild
Revive wasm rebuild scripts
2 parents 19f0f85 + 1f54075 commit 6df5342

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

scripts/bytecodecompare/storebytecode.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env bash
22

33
#------------------------------------------------------------------------------
4-
# Script used for cross-platform comparison as part of the travis automation.
5-
# Splits all test source code into multiple files, generates bytecode and
6-
# uploads the bytecode into github.com/ethereum/solidity-test-bytecode where
7-
# another travis job is triggered to do the actual comparison.
4+
# Script used for cross-platform comparison of the bytecode generated by the compiler.
5+
# Splits all test source code into multiple files, generates bytecode and metadata
6+
# for each file and combines it into a single report.txt file.
7+
#
8+
# The script is meant to be executed in CI on all supported platforms. All generated
9+
# reports must be identical for a given compiler version.
810
#
911
# ------------------------------------------------------------------------------
1012
# This file is part of solidity.

scripts/wasm-rebuild/docker-scripts/rebuild_current.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ set +e
4545
if [ -e scripts/ci/build_emscripten.sh ]; then
4646
scripts/ci/build_emscripten.sh
4747
else
48-
# The script used to be in scripts/ci/ in earlier versions.
48+
# The script used to be in scripts/travis-emscripten/ in earlier versions.
4949
scripts/travis-emscripten/build_emscripten.sh
5050
fi
5151

scripts/wasm-rebuild/docker-scripts/rebuild_tags.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ done
2727
SOLIDITY_REPO_URL="https://github.com/ethereum/solidity"
2828
SOLC_JS_REPO_URL="https://github.com/ethereum/solc-js"
2929
SOLC_JS_BRANCH=wasmRebuildTests
30-
RELEASE_URL="https://raw.githubusercontent.com/ethereum/solc-bin/gh-pages/bin"
30+
RELEASE_URL="https://binaries.soliditylang.org/bin"
3131
RELEASE_COMMIT_LIST_URL="$RELEASE_URL/list.txt"
3232

3333
SCRIPTDIR=$(dirname "$0")
@@ -196,6 +196,7 @@ cp scripts/bytecodecompare/storebytecode.sh /tmp
196196
# shellcheck disable=SC2016
197197
sed -i -e 's/rm -rf "\$TMPDIR"/cp "\$TMPDIR"\/report.txt \/tmp\/report.txt ; rm -rf "\$TMPDIR"/' /tmp/storebytecode.sh
198198
sed -i -e 's/REPO_ROOT=.*/REPO_ROOT=\/src/' /tmp/storebytecode.sh
199+
sed -i -e 's/git clone/git clone --branch '"${SOLC_JS_BRANCH}"'/' /tmp/storebytecode.sh
199200
export SOLC_EMSCRIPTEN="On"
200201

201202
echo "Check out solc-js repository..."
@@ -213,7 +214,9 @@ ln -sf /emsdk_portable/emscripten/bin/* /usr/local/bin
213214
rm -rf /src
214215
ln -sf /root/project /src
215216

217+
echo "Install dependencies and upgrade system packages."
216218
apt-get -qq update >/dev/null 2>&1
219+
apt-get -qq upgrade >/dev/null 2>&1
217220
apt-get -qq install cmake >/dev/null 2>&1
218221

219222
echo "Create output directories."
@@ -228,7 +231,6 @@ mkdir -p "${OUTPUTDIR}"/bin
228231
echo "Prepare solc-js."
229232
cd /root/solc-js
230233
npm install >/dev/null 2>&1
231-
npm run build >/dev/null 2>&1
232234

233235
echo "Install semver helper."
234236
npm install -g semver >/dev/null 2>&1
@@ -238,6 +240,7 @@ wget -q "${RELEASE_COMMIT_LIST_URL}" -O /tmp/release_commit_list.txt
238240

239241
cd /src
240242
TAGS=$(git tag --list "${TAG_FILTER}" | tac)
243+
echo "Matching tags: ${TAGS}"
241244
for TAG in ${TAGS}; do
242245
process_tag "${TAG}"
243246
done

0 commit comments

Comments
 (0)