Skip to content

Commit

Permalink
chore: add rust-cache to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
H1ghBre4k3r committed Jul 15, 2024
1 parent e941fc3 commit 99c830c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,16 @@ jobs:
- self-hosted
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true

- uses: Swatinem/rust-cache@v2

- run: cargo build --all

- run: cargo build --all --release
Expand All @@ -51,19 +53,21 @@ jobs:
- self-hosted
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2

- run: cargo test

linting:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -72,13 +76,15 @@ jobs:
toolchain: stable
components: clippy

- uses: Swatinem/rust-cache@v2

- run: cargo clippy --all-targets

formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -87,4 +93,6 @@ jobs:
toolchain: stable
components: rustfmt

- uses: Swatinem/rust-cache@v2

- run: cargo fmt -- --check

0 comments on commit 99c830c

Please sign in to comment.