Skip to content

Commit

Permalink
Add runtime artifact to releaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-ethernal committed Jul 25, 2023
1 parent bb4cc10 commit 6ac0a7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ jobs:
cargo build --release -p data-avail
mv target/release/data-avail target/release/data-avail-linux-amd64
chmod 777 runtime
docker run --name srtool --rm -e PACKAGE=da-runtime -e RUNTIME_DIR=runtime/ -e PROFILE=release -v $(pwd):/build:rw -v /tmp/cargo:/cargo-home docker.io/paritytech/srtool:1.66.1 build
mv runtime/target/srtool/release/wbuild/da-runtime/da_runtime.compact.compressed.wasm target/release/wbuild/da-runtime/data-avail-runtime.compact.compressed.wasm
pushd target/release/
tar czf data-avail-linux-amd64.tar.gz data-avail-linux-amd64
popd
- uses: actions/upload-artifact@v2
with:
name: data-avail-linux-amd64-tar
path: target/release/data-avail-linux-amd64.tar.gz
- uses: actions/upload-artifact@v2
with:
name: avail-runtime-compressed-wasm
path: target/release/wbuild/da-runtime/data-avail-runtime.compact.compressed.wasm

binary_linux_aarch64:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -77,6 +84,9 @@ jobs:
- uses: actions/download-artifact@v2
with:
name: data-avail-linux-aarch64-tar
- uses: actions/download-artifact@v2
with:
name: avail-runtime-compressed-wasm
- name: Prepare
id: prepare
run: |
Expand Down

0 comments on commit 6ac0a7d

Please sign in to comment.