Skip to content

Commit

Permalink
add container and beefier runners for benches
Browse files Browse the repository at this point in the history
  • Loading branch information
sergejparity committed Dec 4, 2023
1 parent bd83293 commit ca50d61
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
# Checks
clippy:
runs-on: ubuntu-latest
container: paritytech/ci-unified:bullseye-1.73.0-2023-05-23-v20231009
steps:
- name: Checkout code/.
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
profile: minimal
# - name: Set up Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# components: clippy
# profile: minimal

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
Expand All @@ -34,15 +35,16 @@ jobs:
checks:
runs-on: ubuntu-latest
container: paritytech/ci-unified:bullseye-1.73.0-2023-05-23-v20231009
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
# - name: Set up Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# profile: minimal

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
Expand Down Expand Up @@ -70,15 +72,16 @@ jobs:
# Tests
tests:
runs-on: ubuntu-latest
container: paritytech/ci-unified:bullseye-1.73.0-2023-05-23-v20231009
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
# - name: Set up Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# profile: minimal

- name: Cache Rust dependencies
uses: swatinem/rust-cache@v2
Expand Down Expand Up @@ -107,7 +110,7 @@ jobs:
# Benches
bench-rust-nightly:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -129,7 +132,7 @@ jobs:
time cargo +nightly bench --features bit-vec,bytes,generic-array,derive,max-encoded-len
miri:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -157,7 +160,7 @@ jobs:

build-linux-ubuntu-amd64:
runs-on: ubuntu-latest
needs: [checks, tests]
needs: [clippy, checks, tests]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit ca50d61

Please sign in to comment.