Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blacksmith.sh: Migrate workflows to Blacksmith #191

Open
wants to merge 1 commit into
base: upcoming
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
cargo-test-bpf:
runs-on: ubuntu-latest-16-cores
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2

Expand All @@ -30,20 +30,20 @@ jobs:
override: true
profile: minimal

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}}

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cache
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
all_github_action_checks:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
needs:
- rustfmt
- clippy
Expand All @@ -20,7 +20,7 @@ jobs:
- run: echo "Done"

rustfmt:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2

Expand All @@ -43,7 +43,7 @@ jobs:
args: --all -- --check

clippy:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2

Expand All @@ -59,7 +59,7 @@ jobs:
profile: minimal
components: clippy

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
Expand All @@ -79,7 +79,7 @@ jobs:
args: --workspace --all-targets -- --deny=warnings

cargo-build-test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2

Expand All @@ -96,21 +96,21 @@ jobs:
override: true
profile: minimal

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
# target # Removed due to build dependency caching conflicts
key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}}

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/bin/rustfilt
key: cargo-bpf-bins-${{ runner.os }}

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cache
Expand All @@ -126,7 +126,7 @@ jobs:
run: ./ci/cargo-build-test.sh

cargo-coverage:
runs-on: ubuntu-latest-16-cores
runs-on: blacksmith-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v2

Expand All @@ -143,7 +143,7 @@ jobs:
override: true
profile: minimal

- uses: actions/cache@v2
- uses: useblacksmith/cache@v5
with:
path: |
~/.cargo/registry
Expand Down
Loading