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

revert: Removed the redundant shared key and id #105

Merged
merged 1 commit into from
Dec 19, 2024
Merged
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
3 changes: 0 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,10 @@ jobs:
steps:
- name: Installing Rust toolchain
uses: dtolnay/rust-toolchain@stable
id: toolchain
with:
targets: ${{ matrix.job.target }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cross
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,10 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
id: toolchain
with:
targets: ${{ matrix.job.target }}
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Install cross
if: matrix.job.use-cross
uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -79,11 +76,8 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
id: toolchain
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Build for release
run: cargo build --target ${{ matrix.target }} --release
- name: Run executable
Expand All @@ -99,13 +93,10 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
id: toolchain
with:
components: rustfmt
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Check formatting
run: cargo fmt --all --check

Expand All @@ -117,13 +108,10 @@ jobs:
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
id: toolchain
with:
components: clippy
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Clippy Check
run: cargo clippy -- -D warnings

Expand All @@ -135,11 +123,8 @@ jobs:
uses: actions/checkout@v4
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
id: toolchain
- name: Rust cache
uses: Swatinem/rust-cache@v2
with:
shared-key: ${{steps.toolchain.outputs.cachekey}}
- name: Install cargo-tarpaulin
uses: taiki-e/install-action@v2
with:
Expand Down
Loading