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
31 changes: 5 additions & 26 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:
env:
NODE_VERSION: 22
POLKADOT_SDK_VERSION: polkadot-stable2512
POLKADOT_SDK_COMMIT: 81a3af9830ea8b6ff64b066b73b04bb3b675add5
POLKADOT_SDK_VERSION_WITH_BULLETIN: unstable-bulletin-support-v1
POLKADOT_SDK_BIN_DIR: ${{ github.workspace }}/.polkadot-sdk-bin
ZOMBIENET_VERSION: v1.3.138
ZOMBIENET_BIN_DIR: ${{ github.workspace }}/.zombienet-bin
Expand All @@ -35,25 +35,13 @@ jobs:
with:
tool-cache: false

# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
components: rust-src
- name: Install system dependencies
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/azure-cli.list
sudo apt-get update
sudo apt-get install -y protobuf-compiler libclang-dev

# Cache the Polkadot SDK binaries
- name: Cache Polkadot SDK binaries
uses: actions/cache@v3
id: polkadot-sdk-cache
with:
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_COMMIT }}-binaries
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
# Download and extract binaries if cache missed
- name: Download Polkadot SDK binaries
if: steps.polkadot-sdk-cache.outputs.cache-hit != 'true'
Expand All @@ -65,17 +53,8 @@ jobs:
curl -L -o polkadot-prepare-worker https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-prepare-worker
curl -L -o polkadot-execute-worker https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-execute-worker
curl -L -o chain-spec-builder https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/chain-spec-builder
# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
# curl -L -o polkadot-omni-node https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-omni-node
chmod +x *
# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
git clone https://github.com/paritytech/polkadot-sdk.git
cd polkadot-sdk
git reset --hard $POLKADOT_SDK_COMMIT
cargo build -p polkadot-omni-node -r
cd ..
cp polkadot-sdk/target/release/polkadot-omni-node .
rm -R polkadot-sdk
# TODO: replace POLKADOT_SDK_VERSION_WITH_BULLETIN with POLKADOT_SDK_VERSION when released: https://github.com/paritytech/polkadot-sdk/pull/10662
curl -L -o polkadot-omni-node https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION_WITH_BULLETIN}/polkadot-omni-node

# Cache the Zombienet binaries
- name: Cache Zombienet
Expand Down Expand Up @@ -140,7 +119,7 @@ jobs:
id: polkadot-sdk-cache
with:
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_COMMIT }}-binaries
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
- name: Cache Zombienet
uses: actions/cache@v3
id: zombienet-cache
Expand Down
Loading