Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reorg tools installation
  • Loading branch information
EgorPopelyaev committed May 24, 2024
commit f171a3c60e441f3307501613ac05482bd3f9b4aa
26 changes: 12 additions & 14 deletions .github/workflows/release-30_publish_release_draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,33 +22,25 @@ jobs:
RUST_STABLE_VERSION=$(curl -sS https://raw.githubusercontent.com/paritytech/scripts/master/dockerfiles/ci-unified/Dockerfile | grep -oP 'ARG RUST_STABLE_VERSION=\K[^ ]+')
echo "stable=$RUST_STABLE_VERSION" >> $GITHUB_OUTPUT

prepare-tooling:
runs-on: ubuntu-latest
steps:
- name: Prepare tooling
run: |
URL=https://github.com/chevdor/tera-cli/releases/download/v0.2.4/tera-cli_linux_amd64.deb
wget $URL -O tera.deb
sudo dpkg -i tera.deb

sudo apt update
sudo apt install -y protobuf-compiler

build-runtimes:
uses: "./.github/workflows/release-srtool.yml"
with:
excluded_runtimes: "substrate-test bp cumulus-test kitchensink minimal-template parachain-template penpal polkadot-test seedling shell frame-try sp solochain-template"

build-binaries:
runs-on: ubuntu-latest
needs: [ prepare-tooling ]
strategy:
matrix:
binary: [ frame-omni-bencher, chain-spec-builder ]
steps:
- name: Checkout sources
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0

- name: Install protobuf-compiler
run: |
sudo apt update
sudo apt install -y protobuf-compiler

- name: Build ${{ matrix.binary }} binary
run: |
package=${{ matrix.binary }}
Expand All @@ -66,7 +58,7 @@ jobs:

publish-release-draft:
runs-on: ubuntu-latest
needs: [ get-rust-versions, prepare-tooling, build-runtimes ]
needs: [ get-rust-versions, build-runtimes ]
outputs:
release_url: ${{ steps.create-release.outputs.html_url }}
asset_upload_url: ${{ steps.create-release.outputs.upload_url }}
Expand All @@ -77,6 +69,12 @@ jobs:
- name: Download artifacts
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4

- name: Prepare tooling
run: |
URL=https://github.com/chevdor/tera-cli/releases/download/v0.2.4/tera-cli_linux_amd64.deb
wget $URL -O tera.deb
sudo dpkg -i tera.deb

- name: Prepare draft
id: draft
env:
Expand Down