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

Bump actions/cache from 3 to 4 #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
18 changes: 9 additions & 9 deletions .github/workflows/pkg-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ jobs:
- name: Fetch cargo cross if available
if: ${{ steps.skip.skip != 'true' }}
id: cache-cargo-cross
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
${{ steps.rust.outputs.bin_dir }}/cross
Expand All @@ -739,7 +739,7 @@ jobs:

- name: Force cache save
if: ${{ steps.skip.skip != 'true' && steps.install-cargo-cross.outputs.installed == 'true' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: |
${{ steps.rust.outputs.bin_dir }}/cross
Expand Down Expand Up @@ -950,7 +950,7 @@ jobs:
# Speed up Rust builds by caching unchanged built dependencies.
# See: https://github.com/actions/cache/blob/master/examples.md#rust---cargo
- name: Fetch .cargo from cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -961,21 +961,21 @@ jobs:
# the tool that we are using.
- name: Fetch cargo-deb from cache
id: cache-cargo-deb
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/cargo-deb
key: ${{ matrix.image }}-cargo-deb-${{ env.CARGO_DEB_VER }}-${{ endsWith(matrix.image, 'xenial')}}

- name: Fetch cargo-generate-rpm from cache
id: cache-cargo-generate-rpm
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/cargo-generate-rpm
key: ${{ matrix.image }}-cargo-generate-rpm-${{ env.CARGO_GENERATE_RPM_VER }}

- name: Fetch toml-cli from cache
id: cache-toml-cli
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/toml
key: ${{ matrix.image }}-toml-cli-${{ env.TOML_CLI_VER }}
Expand Down Expand Up @@ -1004,7 +1004,7 @@ jobs:

- name: Force cache save
if: ${{ steps.install-cargo-deb.outputs.installed == 'true' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/cargo-deb
key: ${{ matrix.image }}-cargo-deb-${{ env.CARGO_DEB_VER }}-${{ endsWith(matrix.image, 'xenial')}}
Expand All @@ -1022,7 +1022,7 @@ jobs:

- name: Force cache save
if: ${{ steps.install-cargo-generate-rpm.outputs.installed == 'true' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/cargo-generate-rpm
key: ${{ matrix.image }}-cargo-generate-rpm-${{ env.CARGO_GENERATE_RPM_VER }}
Expand All @@ -1036,7 +1036,7 @@ jobs:

- name: Force cache save
if: ${{ steps.install-toml-cli.outputs.installed == 'true' }}
uses: actions/cache/save@v3
uses: actions/cache/save@v4
with:
path: ${{ steps.rust.outputs.bin_dir }}/toml
key: ${{ matrix.image }}-toml-cli-${{ env.TOML_CLI_VER }}
Expand Down