Skip to content

Commit

Permalink
cachepath debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 8, 2024
1 parent 9a84664 commit a77da3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ shaders = "gpu toml crates/renderling"
[build]
rustflags = ["--cfg=web_sys_unstable_apis"]
rustdocflags = ["--cfg=web_sys_unstable_apis"]


#[target.x86_64-pc-windows-msvc]
#rustflags = ["-Zshare-generics=off"]
10 changes: 6 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,21 @@ jobs:
env:
RUST_LOG: debug
outputs:
cachepath: ${{steps.cachepathstep.cachepath}}
cachepath: ${{ steps.cachepathstep.cachepath }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v4
with:
path: ~/.cargo
key: 1-${{ runner.os }}
key: 2-${{ runner.os }}
- uses: moonrepo/setup-rust@v1
- run: rustup default stable
- run: rustup update
- run: cargo install --git https://github.com/rust-gpu/cargo-gpu cargo-gpu
- id: cachepathstep
run: |
CACHE_PATH=`cargo gpu show --cache-directory`
echo $CACHE_PATH
echo "cachepath=$CACHE_PATH" >> "$GITHUB_OUTPUT"
renderling-build-shaders:
Expand All @@ -55,9 +56,10 @@ jobs:
with:
path: |
~/.cargo
${{needs.install-cargo-gpu.outputs.cachepath}}
key: 1-${{ runner.os }}
${{ needs.install-cargo-gpu.outputs.cachepath }}
key: 2-${{ runner.os }}
- uses: moonrepo/setup-rust@v1
- run: echo "Using cache path: ${{ needs.install-cargo-gpu.outputs.cachepath }}"
- run: rm -rf crates/renderling/src/linkage/* crates/renderling/shaders
- run: cargo shaders
- run: cargo build -p renderling
Expand Down

0 comments on commit a77da3e

Please sign in to comment.