Skip to content

Commit

Permalink
ci: use blacksmith runners for gh actions (#271)
Browse files Browse the repository at this point in the history
* ci: use blacksmith 16vcpu runners

This change switches over the `basic` workflow
to Blacksmith's 16vcpu runners. Additionally, this
change switches the rust cache action to use the
Blacksmith drop-in replacement. The Blacksmith version
of the cache is colocated with Blacksmith runners and is
substantially faster.

The result is that this workflow is overall 2x faster and
half the cost.

* ci: move coverage to blacksmith 16vcpu runners

* ci: remove `workflow_dispatch` from the triggers

* ci: bump the `Test Suite` job to use 32vCPUs

* ci: update `setup-protoc` step to avoid getting rate limited

This commit adds an auth token to the `setup-protoc` step to avoid getting rate limited as per: https://github.com/arduino/setup-protoc?tab=readme-ov-file#usage.

* ci: update `Test Suite` job to authenticate for `setup-protoc`

This commit adds an auth token to the `setup-protoc` step to avoid getting rate limited as per: https://github.com/arduino/setup-protoc?tab=readme-ov-file#usage.

* ci: move `Test Suite` job back to 16vCPUs

* ci: move `Test Suite` and compilation steps to 32vCPU VMs

---------

Co-authored-by: Aditya Maru <[email protected]>
Co-authored-by: Aayush Shah <[email protected]>
  • Loading branch information
3 people authored Feb 16, 2024
1 parent 96eadd5 commit 1521676
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: Basic
jobs:
test:
name: Test Suite
runs-on: ubuntu-8-core-32-gb
runs-on: blacksmith-32vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

Expand All @@ -25,9 +25,11 @@ jobs:

- name: Install protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
uses: useblacksmith/rust-cache@v3
with:
shared-key: "cache"

Expand All @@ -42,7 +44,7 @@ jobs:

cosmwasm-compilation:
name: Cosmwasm Compilation
runs-on: ubuntu-8-core-32-gb
runs-on: blacksmith-32vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

Expand All @@ -55,7 +57,7 @@ jobs:
override: true

- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
uses: useblacksmith/rust-cache@v3
with:
shared-key: "cache"

Expand All @@ -78,7 +80,7 @@ jobs:

lints:
name: Lints
runs-on: ubuntu-8-core-32-gb
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4

Expand All @@ -96,7 +98,7 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
uses: useblacksmith/rust-cache@v3
with:
shared-key: "cache"

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
coverage:
runs-on: ubuntu-8-core-32-gb
runs-on: blacksmith-16vcpu-ubuntu-2204
env:
CARGO_TERM_COLOR: always
steps:
Expand All @@ -24,12 +24,14 @@ jobs:

- name: Install protoc
uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install libclang-dev
run: sudo apt-get install libclang-dev

- name: Cache build artifacts
uses: Swatinem/rust-cache@v2
uses: useblacksmith/rust-cache@v3
with:
shared-key: "cache"

Expand Down

0 comments on commit 1521676

Please sign in to comment.