Skip to content

Commit bf2d658

Browse files
committed
Update to use cache-cargo-install
1 parent aa4b862 commit bf2d658

File tree

4 files changed

+12
-35
lines changed

4 files changed

+12
-35
lines changed

.github/workflows/rust-artifact.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,9 @@ jobs:
8484
targets: ${{ matrix.rust_target }}
8585
- name: Install sccache
8686
if: env.SCCACHE_AWS_SECRET != ''
87-
uses: IronCoreLabs/rust-install@v0.1.2
87+
uses: taiki-e/cache-cargo-install-action@v2
8888
with:
89-
crate: sccache
90-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
91-
secretkey: ${{ env.TOOL_CACHE_SECRET_KEY }}
92-
os: ${{ join(matrix.os) }}
93-
version: latest
89+
tool: sccache
9490
- name: Setup sccache env variables
9591
if: env.SCCACHE_AWS_SECRET != ''
9692
run: |

.github/workflows/rust-ci.yaml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,9 @@ jobs:
122122
targets: ${{ matrix.rust_target }}
123123
- name: Install sccache
124124
if: env.SCCACHE_AWS_SECRET != ''
125-
uses: IronCoreLabs/rust-install@v0.1.2
125+
uses: taiki-e/cache-cargo-install-action@v2
126126
with:
127-
crate: sccache
128-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
129-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
130-
os: ubuntu-24.04
131-
version: latest
127+
tool: sccache
132128
- name: Setup sccache env variables
133129
if: env.SCCACHE_AWS_SECRET != ''
134130
run: |
@@ -178,13 +174,9 @@ jobs:
178174
- uses: IronCoreLabs/rust-toolchain@v1
179175
- name: Install sccache
180176
if: env.SCCACHE_AWS_SECRET != ''
181-
uses: IronCoreLabs/rust-install@v0.1.2
177+
uses: taiki-e/cache-cargo-install-action@v2
182178
with:
183-
crate: sccache
184-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
185-
secretkey: ${{ env.TOOL_CACHE_SECRET_KEY }}
186-
os: ubuntu-24.04
187-
version: latest
179+
tool: sccache
188180
- name: Setup sccache env variables
189181
if: env.SCCACHE_AWS_SECRET != ''
190182
run: |
@@ -242,13 +234,9 @@ jobs:
242234
- run: ${{inputs.cargo_command_env_vars}} cargo fmt --all -- --check
243235
working-directory: ${{ needs.vars.outputs.rust_root }}
244236
- name: Install cargo-sort
245-
uses: IronCoreLabs/rust-install@v0.1.2
237+
uses: taiki-e/cache-cargo-install-action@v2
246238
with:
247-
crate: cargo-sort
248-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
249-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
250-
os: ubuntu-24.04
251-
version: latest
239+
tool: cargo-sort
252240
- run: |
253241
if grep -q '\[workspace]' Cargo.toml ; then
254242
${{inputs.cargo_command_env_vars}} cargo sort --check --workspace

.github/workflows/rust-daily.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,9 @@ jobs:
8686
targets: ${{ matrix.rust_target }}
8787
- name: Install sccache
8888
if: env.SCCACHE_AWS_SECRET != ''
89-
uses: IronCoreLabs/rust-install@v0.1.2
89+
uses: taiki-e/cache-cargo-install-action@v2
9090
with:
91-
crate: sccache
92-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
93-
secretkey: ${{ env.TOOL_CACHE_SECRET_KEY }}
94-
os: ubuntu-24.04
95-
version: latest
91+
tool: sccache
9692
- name: Setup sccache env variables
9793
if: env.SCCACHE_AWS_SECRET != ''
9894
run: |

.github/workflows/typescript-ci.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,9 @@ jobs:
9292
path: sql-smelter
9393
- name: Install refinery
9494
if: ${{ inputs.smelter_required }}
95-
uses: IronCoreLabs/rust-install@v0.1.2
95+
uses: taiki-e/cache-cargo-install-action@v2
9696
with:
97-
crate: refinery_cli
98-
accesskey: ${{ vars.TOOL_CACHE_ACCESS_KEY_ID }}
99-
secretkey: ${{ secrets.TOOL_CACHE_SECRET_KEY }}
100-
os: ubuntu-24.04
97+
tool: refinery_cli
10198
- name: Decrypt ironhide files
10299
uses: IronCoreLabs/ironhide-actions/decrypt@v3
103100
if: ${{ inputs.files_to_decrypt != '' }}

0 commit comments

Comments
 (0)