Skip to content

Commit

Permalink
CI: Optimize cargo test with correct toolchain (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
TilakMaddy authored Feb 20, 2025
1 parent 72393c3 commit 22b609c
Showing 1 changed file with 14 additions and 25 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,42 +31,31 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: foundry-toolchain
- name: Install Foundry Toolchain
uses: foundry-rs/foundry-toolchain@v1.2.0

- name: Checkout sources
- name: Checkout Sources
uses: actions/checkout@v4

- name: Install stable toolchain
- name: Install Rust Nightly (2025-01-01)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly-2025-01-01
override: true

- uses: Swatinem/rust-cache@v2
- name: Run cargo build
run: |
cargo build
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- name: Submodule init
run: |
git submodule update --init --recursive
- name: Checkout Submodules
run: git submodule update --init --recursive

- name: Checkout Sources
uses: actions/checkout@v4

- name: Restore Rust Cache
uses: Swatinem/rust-cache@v2

- uses: Swatinem/rust-cache@v2
- name: Run cargo test
- name: Run tests
run: |
cargo build
cargo test -- --nocapture
lints:
Expand Down

0 comments on commit 22b609c

Please sign in to comment.