Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

release.yml: the cache volume's steps follow the runner (a Namespace runner, nsc-*), not a repo variable: the Namespace plan has no Windows runners (not allowed to create windows/amd64 instances), so Windows builds on GitHub's runner with the R2 compile cache while the Mac and Linux keep their build folders on Namespace's volumes

shinyobjectzedf25e43c054
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 30319ed3..56bb03ae 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -117,11 +117,11 @@ jobs:
# A bucket is read by every tag. A cold build fills it; a candidate after a small change compiles only the crates
# that changed and the ones above them. Linking (thin LTO) and build scripts' runs aren't cached. With no secrets
# (a fork) the build runs as before, uncached.
- # the build folder and cargo's downloads kept between runs on the runner's cache volume (Namespace: vars
- # RELEASE_RUNNER_CACHE=1 when the runner labels attach one), so a candidate rebuilds only what changed and links;
+ # the build folder and cargo's downloads kept between runs on the runner's cache volume (a Namespace runner,
+ # whose labels attach one), so a candidate rebuilds only what changed and links;
# sccache below still serves the workspace's own crates, which a fresh checkout's file times mark as changed
- name: The build folder, kept on the runner's cache volume
- if: env.RAEA_PROMOTED_FROM == '' && vars.RELEASE_RUNNER_CACHE == '1'
+ if: env.RAEA_PROMOTED_FROM == '' && startsWith(runner.name, 'nsc-')
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |
@@ -167,7 +167,7 @@ jobs:
# the packing and its checks need only ship/, and macos-15's disk ran out packing rc1 with target/ kept
- name: Free the build's disk
# not the cache volume's build folder, which the next candidate starts from (a bind mount on Linux)
- if: vars.RELEASE_RUNNER_CACHE != '1'
+ if: ${{ !startsWith(runner.name, 'nsc-') }}
run: |
df -h . | tail -1
rm -rf target
@@ -269,7 +269,7 @@ jobs:
# the app targets' hosts a cargo call each: with raea-cli's crates in one call taffy's features unify and
# rune-taffy doesn't build; raea-perceive (`raea song`'s map, #43) a call of its own too
- name: The build folder, kept on the runner's cache volume (as build's)
- if: env.RAEA_PROMOTED_FROM == '' && vars.RELEASE_RUNNER_CACHE == '1'
+ if: env.RAEA_PROMOTED_FROM == '' && startsWith(runner.name, 'nsc-')
uses: namespacelabs/nscloud-cache-action@v1
with:
path: |