Skip to content

ci: uses taiki-e/install-action to replace cargo insatll #6168

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

Merged
merged 1 commit into from
May 11, 2025
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
32 changes: 7 additions & 25 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,37 +64,19 @@ runs:
version: "23.4"
repo-token: ${{ inputs.github-token }}

- name: Cache nextest on linux
id: cache-nextest
uses: actions/cache@v4
- name: Install cargo-nextest
if: inputs.need-nextest == 'true'
uses: taiki-e/install-action@v2
with:
path: |
~/.cargo/bin/cargo-nextest
~/.cargo/bin/cargo-nextest.exe
key: r0-${{runner.os}}-nextest-0.9.72

- name: Build nextest if not cached
if: steps.cache-nextest.outputs.cache-hit != 'true' && inputs.need-nextest == 'true'
shell: bash
run: cargo install [email protected] --locked
tool: [email protected]

- name: Cache cargo-deny on linux
id: cache-deny
uses: actions/cache@v4
- name: Install cargo-deny
if: inputs.need-deny == 'true'
uses: taiki-e/install-action@v2
with:
path: |
~/.cargo/bin/cargo-deny
~/.cargo/bin/cargo-deny.exe
key: r0-${{runner.os}}-deny-0.14.22

- name: Build cargo-deny if not cached
if: steps.cache-deny.outputs.cache-hit != 'true' && inputs.need-deny == 'true'
shell: bash
run: cargo install [email protected] --locked
tool: [email protected]

- name: Setup rust on linux
- name: Setup rocksdb on linux
if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
shell: bash
run: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test_edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ jobs:
cp -r chromedriver-linux64 /tmp/chrome/chromedriver

- name: Setup wasm-pack
run: |
cargo install wasm-pack
uses: taiki-e/install-action@v2
with:
tool: wasm-pack

- name: Setup MinIO Server
shell: bash
Expand Down