Skip to content

Commit

Permalink
ci: Address Node.js 16 actions are deprecated (#4293)
Browse files Browse the repository at this point in the history
* ci: Address Node.js 16 actions are deprecated

Signed-off-by: Xuanwo <[email protected]>

* format

Signed-off-by: Xuanwo <[email protected]>

---------

Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo authored Feb 29, 2024
1 parent 605cfe0 commit 2180729
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ inputs:
need-protoc:
description: "This setup needs protoc or not"
need-deny:
description: "This setup needs cargo-deny or not"
description: "This setup needs cargo-deny or not"
github-token:
description: "Github Token"
default: ""
Expand Down Expand Up @@ -59,14 +59,14 @@ runs:

- name: Setup Protoc
if: inputs.need-protoc == 'true'
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.4"
repo-token: ${{ inputs.github-token }}

- name: Cache nextest on linux
id: cache-nextest
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.need-nextest == 'true'
with:
path: |
Expand All @@ -81,13 +81,13 @@ runs:

- name: Cache cargo-deny on linux
id: cache-deny
uses: actions/cache@v3
uses: actions/cache@v4
if: inputs.need-deny == 'true'
with:
path: |
~/.cargo/bin/cargo-deny
~/.cargo/bin/cargo-deny.exe
key: r0-${{runner.os}}-deny-0.14.3
path: |
~/.cargo/bin/cargo-deny
~/.cargo/bin/cargo-deny.exe
key: r0-${{runner.os}}-deny-0.14.3

- name: Build cargo-deny if not cached
if: steps.cache-deny.outputs.cache-hit != 'true' && inputs.need-deny == 'true'
Expand All @@ -103,7 +103,7 @@ runs:
- name: Cache rocksdb
id: cache-rocksdb
uses: actions/cache@v3
uses: actions/cache@v4
if: runner.os == 'Linux' && inputs.need-rocksdb == 'true'
with:
path: /tmp/rocksdb
Expand All @@ -130,7 +130,7 @@ runs:
- name: Cache foundationdb
id: cache-foundationdb
uses: actions/cache@v3
uses: actions/cache@v4
if: runner.os == 'Linux' && inputs.need-foundationdb == 'true'
with:
path: /etc/foundationdb
Expand Down

0 comments on commit 2180729

Please sign in to comment.