Skip to content

Commit

Permalink
Update and use better maintained github actions.
Browse files Browse the repository at this point in the history
actions-rs is no longer maintained.
  • Loading branch information
nihohit committed Sep 14, 2023
1 parent a6d24b4 commit 328a6b4
Showing 1 changed file with 15 additions and 22 deletions.
37 changes: 15 additions & 22 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,22 +60,21 @@ jobs:
echo "$HOME" >> $GITHUB_PATH
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain
with:
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Run tests
run: make test

- name: Checkout RedisJSON
if: steps.cache-redisjson.outputs.cache-hit != 'true'
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: "RedisJSON/RedisJSON"
path: "./__ci/redis-json"
Expand Down Expand Up @@ -121,22 +120,17 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-features --all-targets -- -D warnings
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
name: fmt

- run: cargo clippy --all-features --all-targets -- -D warnings
name: clippy
- name: doc
run: cargo doc --no-deps --document-private-items
env:
Expand Down Expand Up @@ -173,14 +167,13 @@ jobs:
echo "$HOME" >> $GITHUB_PATH
- name: Install Rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain
with:
toolchain: ${{ env.rust_ver }}
override: true

- uses: Swatinem/rust-cache@v1
- uses: Swatinem/rust-cache@v2

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Benchmark
run: |
Expand Down

0 comments on commit 328a6b4

Please sign in to comment.