Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Sep 14, 2024
1 parent bc59852 commit 08dd783
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ inputs:
runs:
using: composite
steps:
- uses: actions/cache@v4
- name: Set up environment variables for cache
run: echo "MODIFIED_FEATURES=${{ inputs.features || 'default' }}" | sed 's/,/-/g' >> $GITHUB_ENV

- name: Cache Cargo build
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-build-${{ inputs.arch }}-${{ inputs.features || 'default' | replace(',', '-') }}-${{ inputs.extra_flags || 'default' }}
path: target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-build-${{ inputs.arch }}-${{ env.MODIFIED_FEATURES }}-${{ inputs.extra_flags || 'default' }}

- name: Rust Add target
shell: sh
run: |
Expand Down

0 comments on commit 08dd783

Please sign in to comment.