Skip to content

Commit

Permalink
Update Rust setup actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dnanuti committed Apr 5, 2024
1 parent e71d5b7 commit e53adc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 24 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/python-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,12 @@ jobs:
uses: actions/checkout@v4

- name: Set up stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
Expand Down Expand Up @@ -75,16 +71,12 @@ jobs:
uses: actions/checkout@v4

- name: Set up stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/rust-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Run cargo deny
uses: EmbarkStudios/cargo-deny-action@v1
Expand All @@ -47,17 +44,12 @@ jobs:
uses: actions/checkout@v4

- name: Set up stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true
uses: dtolnay/rust-toolchain@stable

- name: Cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
Expand All @@ -78,10 +70,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up stable Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build Rust tests
run: cargo test --no-default-features --no-run --manifest-path s3torchconnectorclient/Cargo.toml
Expand Down

0 comments on commit e53adc1

Please sign in to comment.