Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ jobs:
mkdir ship
cp target/dist/raea target/dist/${{ matrix.lib }} target/dist/raea-rune-host target/dist/raea-page-host ship/
if [ -n "${{ matrix.extra }}" ]; then cp target/dist/${{ matrix.extra }} ship/; fi
# 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
run: |
df -h . | tail -1
rm -rf target
df -h . | tail -1
- name: Where the skills gate passed
run: bash tools/release/skills-passed.sh "$TAG" "${{ inputs.skills_passed }}"
- name: Pack and check (tools/release.sh)
Expand All @@ -93,12 +99,14 @@ jobs:
v=${TAG#v}
if [ "$RUNNER_OS" = Linux ]; then xvfb-run -a -s "-screen 0 1280x1024x24" bash tools/release.sh "$v" ship HEAD
else bash tools/release.sh "$v" ship HEAD; fi
# a failed check's own files (the app check's frames and logs), not the unpacked release
# a failed check's own files (the app check's frames, every step's log), not the unpacked release
- uses: actions/upload-artifact@v4
if: failure()
with:
name: release-check-${{ runner.os }}
path: ${{ runner.temp }}/release-check/app
path: |
${{ runner.temp }}/release-check/app
${{ runner.temp }}/release-check/**/*.log
retention-days: 7
if-no-files-found: ignore
- uses: actions/attest-build-provenance@v2
Expand Down
3 changes: 2 additions & 1 deletion tools/release-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ TS
# and its guides and styles.gen come from the release too
(cd "$check/p" && RAEA_NO_TREE=1 "$raea" guide music | grep -q "music") || fail "the unpacked raea has no craft guides"
mkdir -p "$check/styled" && { echo 'import { css } from "./styles.gen";'; cat "$check/p/hello.tsx"; echo 'void css;'; } > "$check/styled/hello.tsx"
(cd "$check/styled" && RAEA_NO_TREE=1 "$raea" render hello.tsx --frame 1 -o hello.png >/dev/null 2>&1 && [ -s styles.gen.ts ]) || fail "the unpacked raea didn't write styles.gen.ts"
(cd "$check/styled" && RAEA_NO_TREE=1 "$raea" render hello.tsx --frame 1 -o hello.png > render.log 2>&1 && [ -s styles.gen.ts ]) \
|| { tail -20 "$check/styled/render.log" >&2; fail "the unpacked raea didn't write styles.gen.ts"; }
# the app targets (docs/targets.feature T1c, T1e, T1f): an app importing react, @raea/ui and @raea/rune, bundled by the
# release's own raea (no bun), checked headless on each target with one press: its frames, the press drawn (the
# frame after it differs from the mount's) and an empty unmapped.json; filmed on native, the public engine's MP4 says
Expand Down
3 changes: 2 additions & 1 deletion tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ gate_inputs=(skills sdk/guides docs/skills.glossary.md engine/cli/src tools/skil
skills_at() {
local pin; pin=$(git rev-parse "$ref:skills") || { echo "release.sh: $ref pins no raea-skills (skills/)" >&2; return 1; }
git -C skills cat-file -e "$pin^{commit}" 2>/dev/null || git -C skills fetch -q origin "$pin" || { echo "release.sh: raea-skills has no commit $pin (git submodule update --init skills)" >&2; return 1; }
mkdir -p "$1" && git -C skills archive "$pin" | tar -x -C "$1"
# its skills/ folder alone: the repo's root holds a symlink (AGENTS.md) that Windows' tar can't make, and nothing reads it
mkdir -p "$1" && git -C skills archive "$pin" skills | tar -x -C "$1"
}
if [ ! -f "$root/apps/app/src/acp/protocol.ts" ]; then
[ -n "${RAEA_SKILLS_PASSED:-}" ] || { echo "release.sh: no feed app here (apps/app), so the skills gate can't run; run tools/skills.sh check in a checkout with the feed app, then name the commit it passed on as RAEA_SKILLS_PASSED (release.yml: a \"skills-passed: <sha>\" line in the annotated tag's message, or the skills_passed input when run by hand)" >&2; exit 1; }
Expand Down
Loading