Skip to content

Commit

Permalink
[ci] Use parity-large runners instead ubuntu-latest-16-cores (#1821)
Browse files Browse the repository at this point in the history
* [ci] Use parity-large runners instead ubuntu-latest-16-cores

* isntall curl, move clippy, check, docs to parity-large

* install gcc, make, clang

* isntall cmake

* mv artifacts to /usr/local/bin

* sudo mv

* check build-nodes

* uncomment upload

* temporary run build-nodes on pull request to make CI green

* rm on: pr from build-nodes
  • Loading branch information
alvicsam authored Oct 9, 2024
1 parent 6fd3e7b commit 00b3149
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/actions/use-nodes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ description: Downloads and configures the substrate and polkadot binaries built
runs:
using: composite
steps:
- name: Install dependencies
shell: bash
run: sudo apt-get update && sudo apt-get install -y curl gcc make clang cmake

- name: Download substrate-node binary
id: download-substrate-binary
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
Expand Down Expand Up @@ -32,9 +36,8 @@ runs:
chmod u+x ./polkadot-prepare-worker
./substrate-node --version
./polkadot --version
mkdir -p ~/.local/bin
mv ./substrate-node ~/.local/bin
mv ./polkadot ~/.local/bin
mv ./polkadot-execute-worker ~/.local/bin
mv ./polkadot-prepare-worker ~/.local/bin
sudo mv ./substrate-node /usr/local/bin
sudo mv ./polkadot /usr/local/bin
sudo mv ./polkadot-execute-worker /usr/local/bin
sudo mv ./polkadot-prepare-worker /usr/local/bin
rm ./polkadot.tar.gz
16 changes: 9 additions & 7 deletions .github/workflows/build-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,23 @@ on:
jobs:
tests:
name: Build Substrate and Polkadot Binaries
runs-on: ubuntu-latest-16-cores
runs-on: parity-large
steps:
- name: checkout polkadot-sdk
uses: actions/checkout@v4
with:
repository: paritytech/polkadot-sdk

- name: Install dependencies
run: sudo apt-get install -y protobuf-compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler curl gcc make clang cmake

- name: Install WASM toolchain
run: rustup target add wasm32-unknown-unknown

- name: Install WASM toolchain
run: rustup component add rust-src
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rust-src
target: wasm32-unknown-unknown

- name: Rust Cache
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:

clippy:
name: Cargo clippy
runs-on: ubuntu-latest
runs-on: parity-large
needs: [fmt, machete]
steps:
- name: Checkout sources
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:

check:
name: Cargo check
runs-on: ubuntu-latest
runs-on: parity-large
needs: [fmt, machete]
steps:
- name: Checkout sources
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:

docs:
name: Check documentation and run doc tests
runs-on: ubuntu-latest
runs-on: parity-large
needs: [fmt, machete]
steps:
- name: Checkout sources
Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:

tests:
name: "Test (Native)"
runs-on: ubuntu-latest-16-cores
runs-on: parity-large
needs: [clippy, wasm_clippy, check, wasm_check, docs]
timeout-minutes: 30
steps:
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:

unstable_backend_tests:
name: "Test chainhead backend"
runs-on: ubuntu-latest-16-cores
runs-on: parity-large
needs: [clippy, wasm_clippy, check, wasm_check, docs]
timeout-minutes: 30
steps:
Expand Down

0 comments on commit 00b3149

Please sign in to comment.