Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 15 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ concurrency:
# Repo env variable doesn't work for PRs from forks
env:
CI_IMAGE: "paritytech/ci-unified:bullseye-1.88.0-2025-06-27-v202507112050"
POLKADOT_SDK_VERSION: "polkadot-stable2512-1"
FRAME_OMNI_BENCHER_BIN_DIR: ${{ github.workspace }}/.frame-omni-bencher-bin

jobs:
Expand All @@ -41,7 +42,7 @@ jobs:
container:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Cargo fmt
run: |
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Rust cache
uses: Swatinem/rust-cache@v2
Expand All @@ -93,7 +94,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Rust cache
uses: Swatinem/rust-cache@v2
Expand All @@ -117,7 +118,7 @@ jobs:
SKIP_WASM_BUILD: 1
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Rust cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -161,20 +162,28 @@ jobs:
image: ${{ needs.set-image.outputs.CI_IMAGE }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rosarp please change this for all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same for other workflows, I guess? (including my integration-tests...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok


- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: "bulletin-cache-benchmarks"
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Cache frame-omni-bencher
uses: actions/cache@v5
id: frame-omni-bencher-cache
with:
path: ${{ env.FRAME_OMNI_BENCHER_BIN_DIR }}
key: frame-omni-bencher-${{ env.POLKADOT_SDK_VERSION }}

- name: Download frame-omni-bencher
if: steps.frame-omni-bencher-cache.outputs.cache-hit != 'true'
run: |
mkdir -p $FRAME_OMNI_BENCHER_BIN_DIR
cd $FRAME_OMNI_BENCHER_BIN_DIR
echo "Downloading frame-omni-bencher..."
curl -L -o frame-omni-bencher https://github.com/paritytech/polkadot-sdk/releases/latest/download/frame-omni-bencher
curl -L -o frame-omni-bencher "https://github.com/paritytech/polkadot-sdk/releases/download/${POLKADOT_SDK_VERSION}/frame-omni-bencher"
chmod +x frame-omni-bencher
./frame-omni-bencher --version
echo "${FRAME_OMNI_BENCHER_BIN_DIR}" >> $GITHUB_PATH
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

# Cache the Polkadot SDK binaries
- name: Cache Polkadot SDK binaries
uses: actions/cache@v3
uses: actions/cache@v5
id: polkadot-sdk-cache
with:
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
Expand All @@ -59,7 +59,7 @@ jobs:

# Cache the Zombienet binaries
- name: Cache Zombienet
uses: actions/cache@v3
uses: actions/cache@v5
id: zombienet-cache
with:
path: ${{ env.ZOMBIENET_BIN_DIR }}
Expand All @@ -84,7 +84,7 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -116,13 +116,13 @@ jobs:
run: cargo install just --locked || true

- name: Cache Polkadot SDK binaries
uses: actions/cache@v3
uses: actions/cache@v5
id: polkadot-sdk-cache
with:
path: ${{ env.POLKADOT_SDK_BIN_DIR }}
key: polkadot-sdk-${{ env.POLKADOT_SDK_VERSION }}-${{ env.POLKADOT_SDK_VERSION_WITH_BULLETIN }}-binaries
- name: Cache Zombienet
uses: actions/cache@v3
uses: actions/cache@v5
id: zombienet-cache
with:
path: ${{ env.ZOMBIENET_BIN_DIR }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
path: runtimes/bulletin-polkadot
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Build ${{ matrix.name }} runtime
id: srtool_build
Expand All @@ -43,7 +43,7 @@ jobs:
echo '${{ steps.srtool_build.outputs.json }}' | jq > ${{ matrix.name }}_srtool_output.json

- name: Upload ${{ matrix.name }} wasm
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.name }}-runtime
path: |
Expand All @@ -63,7 +63,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
run: cargo build --profile production -p polkadot-bulletin-chain

- name: Upload polkadot-bulletin-chain binary
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: ${{ matrix.artifact_name }}
path: target/production/polkadot-bulletin-chain
Expand All @@ -101,10 +101,10 @@ jobs:
needs: [build-runtimes, build-node]
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
path: artifacts

Expand Down