Skip to content

Commit

Permalink
separate rust-gpu cache for each runner os
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 8, 2024
1 parent 9ae8e90 commit ba0f5df
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ jobs:
shell: bash
env:
RUST_LOG: debug
RUNNER_OS: ${{ matrix.os }}
outputs:
cachepath: ${{ steps.cachepathstep.outputs.cachepath }}
cachepath-macOS: ${{ steps.cachepathstep.outputs.cachepath-macOS }}
cachepath-Linux: ${{ steps.cachepathstep.outputs.cachepath-Linux }}
cachepath-Windows: ${{ steps.cachepathstep.outputs.cachepath-macOS }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v4
Expand All @@ -37,7 +40,7 @@ jobs:
run: |
CACHE_PATH=`cargo gpu show --cache-directory`
echo $CACHE_PATH
echo "cachepath=$CACHE_PATH" >> "$GITHUB_OUTPUT"
echo "cachepath-$RUNNER_OS=$CACHE_PATH" >> "$GITHUB_OUTPUT"
renderling-build-shaders:
needs: install-cargo-gpu
Expand Down

0 comments on commit ba0f5df

Please sign in to comment.