Skip to content

Commit

Permalink
Merge pull request #116 from web3labs/snow-runtime-added
Browse files Browse the repository at this point in the history
set snow runtime in build option
  • Loading branch information
mohamedelshami authored Jul 15, 2022
2 parents 456cad1 + 150f16f commit 47d544c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
SUBWASM_VERSION: 0.17.0
strategy:
matrix:
chain: ["arctic"]
chain: ["snow"]
steps:
- uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout the source code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust toolchain
Expand Down Expand Up @@ -122,30 +122,30 @@ jobs:

steps:
- name: Checkout the source code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Create dir
shell: bash
run: |
mkdir -p release/tmp/
cd release/tmp/
mkdir arctic x86_64
mkdir snow x86_64
- name: get x86_64 binary
uses: actions/download-artifact@v2
with:
name: x86_64-unknown-linux-gnu
path: release/tmp/x86_64/
- uses: actions/download-artifact@v2
with:
name: arctic-runtime
path: release/tmp/arctic/
name: snow-runtime
path: release/tmp/snow/
- id: compress_artifacts
shell: bash
run: |
cd release/
echo "::set-output name=arctic::$(jq -r '.core_version' tmp/arctic/arctic-info.json | awk '{print $1}')"
echo "::set-output name=snow::$(jq -r '.core_version' tmp/snow/snow-info.json | awk '{print $1}')"
chmod +x tmp/x86_64/ice-node
tar -czvf ice-node.tar.gz -C tmp/x86_64/ ice-node
cd tmp/arctic;tar -czvf ../../runtime-"$(jq -r '.core_version' arctic-info.json | awk '{print $1}')".tar.gz *;cd ../../
cd tmp/snow;tar -czvf ../../runtime-"$(jq -r '.core_version' snow-info.json | awk '{print $1}')".tar.gz *;cd ../../
sha256sum *.tar.gz > sha256sum
rm -rf tmp/
Expand Down

0 comments on commit 47d544c

Please sign in to comment.