Skip to content

Commit 1526f5b

Browse files
committed
[CI] Speedup CI with just downloading binaries
1 parent 6ffd1e1 commit 1526f5b

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/integration-test.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
env:
2020
NODE_VERSION: 22
2121
POLKADOT_SDK_VERSION: polkadot-stable2512
22-
POLKADOT_SDK_COMMIT: 81a3af9830ea8b6ff64b066b73b04bb3b675add5
22+
POLKADOT_SDK_VERSION_WITH_BULLETIN: unstable-bulletin-support-v1
2323
POLKADOT_SDK_BIN_DIR: ${{ github.workspace }}/.polkadot-sdk-bin
2424
ZOMBIENET_VERSION: v1.3.138
2525
ZOMBIENET_BIN_DIR: ${{ github.workspace }}/.zombienet-bin
@@ -35,25 +35,13 @@ jobs:
3535
with:
3636
tool-cache: false
3737

38-
# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
39-
- name: Install Rust toolchain
40-
uses: dtolnay/rust-toolchain@stable
41-
with:
42-
targets: wasm32-unknown-unknown
43-
components: rust-src
44-
- name: Install system dependencies
45-
run: |
46-
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list /etc/apt/sources.list.d/azure-cli.list
47-
sudo apt-get update
48-
sudo apt-get install -y protobuf-compiler libclang-dev
49-
5038
# Cache the Polkadot SDK binaries
5139
- name: Cache Polkadot SDK binaries
5240
uses: actions/cache@v3
5341
id: polkadot-sdk-cache
5442
with:
5543
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
56-
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_COMMIT }}-binaries
44+
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
5745
# Download and extract binaries if cache missed
5846
- name: Download Polkadot SDK binaries
5947
if: steps.polkadot-sdk-cache.outputs.cache-hit != 'true'
@@ -65,17 +53,8 @@ jobs:
6553
curl -L -o polkadot-prepare-worker https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-prepare-worker
6654
curl -L -o polkadot-execute-worker https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-execute-worker
6755
curl -L -o chain-spec-builder https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/chain-spec-builder
68-
# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
69-
# curl -L -o polkadot-omni-node https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/polkadot-omni-node
70-
chmod +x *
71-
# TODO: remove when released: https://github.com/paritytech/polkadot-sdk/pull/10662
72-
git clone https://github.com/paritytech/polkadot-sdk.git
73-
cd polkadot-sdk
74-
git reset --hard $POLKADOT_SDK_COMMIT
75-
cargo build -p polkadot-omni-node -r
76-
cd ..
77-
cp polkadot-sdk/target/release/polkadot-omni-node .
78-
rm -R polkadot-sdk
56+
# TODO: replace POLKADOT_SDK_VERSION_WITH_BULLETIN with POLKADOT_SDK_VERSION when released: https://github.com/paritytech/polkadot-sdk/pull/10662
57+
curl -L -o polkadot-omni-node https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION_WITH_BULLETIN}/polkadot-omni-node
7958
8059
# Cache the Zombienet binaries
8160
- name: Cache Zombienet
@@ -140,7 +119,7 @@ jobs:
140119
id: polkadot-sdk-cache
141120
with:
142121
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
143-
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_COMMIT }}-binaries
122+
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
144123
- name: Cache Zombienet
145124
uses: actions/cache@v3
146125
id: zombienet-cache

0 commit comments

Comments
 (0)