mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 19:51:02 +00:00
bringing back repo checkout and adding a temp dir to avoid name duplication between binary and repo dir (#1299)
* bringing back repo checkout and adding a temp dir to avoid name duplication between binary and repo dir * added hash to the action Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * adjusted extrinsic ordering action * addressed comments from PR * addressed comments from PR * variables reoredering Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
@@ -23,25 +23,31 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CHAIN: ${{github.event.inputs.chain}}
|
CHAIN: ${{github.event.inputs.chain}}
|
||||||
|
BIN: node-bin
|
||||||
|
BIN_PATH: ./tmp/$BIN
|
||||||
BIN_URL: ${{github.event.inputs.binary_url}}
|
BIN_URL: ${{github.event.inputs.binary_url}}
|
||||||
REF_URL: ${{github.event.inputs.reference_url}}
|
REF_URL: ${{github.event.inputs.reference_url}}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||||
|
|
||||||
- name: Fetch binary
|
- name: Fetch binary
|
||||||
run: |
|
run: |
|
||||||
|
echo Creating a temp dir to download and run binary
|
||||||
|
mkdir -p tmp
|
||||||
echo Fetching $BIN_URL
|
echo Fetching $BIN_URL
|
||||||
wget $BIN_URL
|
wget $BIN_URL -O $BIN_PATH
|
||||||
chmod a+x polkadot-parachain
|
chmod a+x $BIN_PATH
|
||||||
./polkadot-parachain --version
|
$BIN_PATH --version
|
||||||
|
|
||||||
- name: Start local node
|
- name: Start local node
|
||||||
run: |
|
run: |
|
||||||
echo Running on $CHAIN
|
echo Running on $CHAIN
|
||||||
./polkadot-parachain --chain=$CHAIN -- --chain polkadot-local &
|
$BIN_PATH --chain=$CHAIN -- --chain polkadot-local &
|
||||||
|
|
||||||
- name: Prepare output
|
- name: Prepare output
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(./polkadot-parachain --version)
|
VERSION=$($BIN_PATH --version)
|
||||||
echo "Metadata comparison:" >> output.txt
|
echo "Metadata comparison:" >> output.txt
|
||||||
echo "Date: $(date)" >> output.txt
|
echo "Date: $(date)" >> output.txt
|
||||||
echo "Reference: $REF_URL" >> output.txt
|
echo "Reference: $REF_URL" >> output.txt
|
||||||
@@ -69,7 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Stop our local node
|
- name: Stop our local node
|
||||||
run: |
|
run: |
|
||||||
pkill polkadot-parachain
|
pkill $BIN
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Save output as artifact
|
- name: Save output as artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user