mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 14:31:02 +00:00
bd066e27a6
* Factor out safe-mix and dispatch * Refactor dispatch into something more modular. * Fix wasm build. * Fix up timestamp * fix warnings. * Borked timestamp example * Fix build * Timestamp as skeleton for traity runtime. * New storage macro. * Dispatch module has traity API. * Move consensus module to new API * Refactoring and outer dispatch * Avoid unnecessary derives. * Abstract the low-level half of system. * nicer outer dispatch syntax. * Make runtime compile again (albeit in a heavily simplified state) * Reworking runtime and the upper levels of system. * Initial reworking of runtime: - Introduced executive module; - Introduced trait primitives module; - Provided an API endpoint. * Expose an additional function in system * Another couple of functions traitified in executive. * another function in executive traitified. * One more function traitified. * Finish traitifying executive! * Traitify session module. * Cleanups and ensure session gets run. * First part of traitification of staking module. * Bit more of staking traitified. * Additional stuff in staking. Fix up session. * Penultimate part of staking module. * Final part of staking (code) * Update demo runtime to include staking. * Final tweaks for staking integration. * Remove old runtime files. * Schedule staking. * Minor fixes * First bits of democracy. * Democracy module integrated. * Fix warning. * Traitify and integrate council module * Council voting. * Runtime binary and tweaks. * Binary update. * Fix `*Type` grumble. * Fix up genesis_map * Remove NonTrivialSlicable * Staking "test externalities" stuff along with refactor. * Add session test externalities constructor * Fixed executor tests. * Make one test in executive module work. * Remove test framework stuff into common module. * Enable other tests in executive * Session tests reinstated, minor refactoring of keyring. * Fix staking tests. * Fix up democracy tests. * First few tests in council. * Council tests reinstated :) * Avoid hardcoding blake2 into Header. * Fix last few tests. * Make all primitives generic. * Fix tests. * Refactor runtime to remove genesismap. * Streamline runtime more with macrofied config. * Clean paths * Fix warning. * Consolidate demo runtime crate. * Remove stale code. * Refactor away dodgy trait. * Add corresponding Aux type. * Fixes * Rename Digesty -> Digest * Rename Headery -> Header * Blocky -> Block * Fix wasm build. * kill warnings * more docs * minor cleanups
74 lines
1.5 KiB
Bash
Executable File
74 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
REPO="github.com/paritytech/polkadot-wasm-bin.git"
|
|
REPO_AUTH="${GH_TOKEN}:@${REPO}"
|
|
SRCS=( "polkadot/runtime/wasm" "substrate/executor/wasm" "demo/runtime/wasm" "substrate/test-runtime/wasm" )
|
|
DST=".wasm-binaries"
|
|
TARGET="wasm32-unknown-unknown"
|
|
UTCDATE=`date -u "+%Y%m%d.%H%M%S.0"`
|
|
|
|
pushd .
|
|
|
|
echo "*** Initilising WASM build environment"
|
|
cd polkadot/runtime/wasm
|
|
./init.sh || true
|
|
cd ../../..
|
|
|
|
for SRC in "${SRCS[@]}"
|
|
do
|
|
echo "*** Building wasm binaries in $SRC"
|
|
cd $SRC
|
|
./build.sh
|
|
cd ../../..
|
|
done
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then
|
|
popd
|
|
echo "*** Skipping wasm binary publish"
|
|
exit 0
|
|
fi
|
|
|
|
echo "*** Cloning repo"
|
|
rm -rf $DST
|
|
git clone https://$REPO $DST
|
|
cd $DST
|
|
rm -rf $TARGET
|
|
mkdir -p $TARGET
|
|
|
|
echo "*** Setting up GH config"
|
|
git config push.default simple
|
|
git config merge.ours.driver true
|
|
git config user.email "admin@parity.io"
|
|
git config user.name "CI Build"
|
|
git remote set-url origin https://$REPO_AUTH > /dev/null 2>&1
|
|
|
|
for SRC in "${SRCS[@]}"
|
|
do
|
|
echo "*** Copying wasm binaries from $SRC"
|
|
cp ../$SRC/target/$TARGET/release/*.wasm $TARGET
|
|
done
|
|
|
|
if [ -f "package.json" ]; then
|
|
echo "*** Updating package.json"
|
|
sed -i -e "s/\"version\": \"[0-9.]*\"/\"version\": \"$UTCDATE\"/g" package.json
|
|
rm -rf package.json.bak
|
|
fi
|
|
|
|
echo "*** Adding to git"
|
|
echo "$UTCDATE" > README.md
|
|
git add --all .
|
|
git commit -m "$UTCDATE"
|
|
|
|
echo "*** Pushing upstream"
|
|
git push --quiet origin HEAD:refs/heads/master > /dev/null 2>&1
|
|
|
|
echo "*** Cleanup"
|
|
cd ..
|
|
rm -rf $DST
|
|
popd
|
|
|
|
echo "*** Completed"
|
|
exit 0
|