Skip to content

Commit 6160e0a

Browse files
authored
[CI] Speedup CI with just downloading binaries (#206)
* [CI] Speedup CI with just downloading binaries * Update .github/workflows/integration-test.yml * Log docker version * Add forgotten chmod +x
1 parent e31f3a4 commit 6160e0a

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

.github/workflows/integration-test.yml

Lines changed: 7 additions & 25 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,9 @@ 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
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
7058
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
7959
8060
# Cache the Zombienet binaries
8161
- name: Cache Zombienet
@@ -140,7 +120,7 @@ jobs:
140120
id: polkadot-sdk-cache
141121
with:
142122
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
143-
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_COMMIT }}-binaries
123+
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
144124
- name: Cache Zombienet
145125
uses: actions/cache@v3
146126
id: zombienet-cache
@@ -149,7 +129,9 @@ jobs:
149129
key: zombienet-${{ env.ZOMBIENET_VERSION }}-binaries
150130
- name: Add binaries to PATH
151131
run: |
132+
chmod +x "${POLKADOT_SDK_BIN_DIR}"/*
152133
ls -lrt "${POLKADOT_SDK_BIN_DIR}"
134+
chmod +x "${ZOMBIENET_BIN_DIR}"/*
153135
ls -lrt "${ZOMBIENET_BIN_DIR}"
154136
echo "${POLKADOT_SDK_BIN_DIR}" >> "$GITHUB_PATH"
155137
echo "SKIP_PARACHAIN_SETUP=1" >> "$GITHUB_ENV"

examples/justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ ipfs-start test_dir: _check-docker
234234
echo " Container: ipfs-node"
235235
echo " Waiting for container to start..."
236236
sleep 5
237+
docker exec ipfs-node ipfs --version
237238

238239
# Bitswap logging
239240
docker logs -f ipfs-node > {{ test_dir }}/ipfs-node.log 2>&1 &

0 commit comments

Comments
 (0)