Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8573cdfb4b | ||
|
|
bcd5f79990 | ||
|
|
0865d9a479 | ||
|
|
ecbd441eb4 | ||
|
|
53d54cf250 | ||
|
|
64ec413c25 |
No files matched your search
@@ -81,7 +81,8 @@ jobs:
|
|||||||
# checks both halves that matter: a good archive installs, and a bad checksum
|
# checks both halves that matter: a good archive installs, and a bad checksum
|
||||||
# aborts without leaving a binary behind.
|
# aborts without leaving a binary behind.
|
||||||
installer:
|
installer:
|
||||||
runs-on: ${{ matrix.os }}
|
# macos-14 is retired on GitHub but is the self-hosted runner's label on Gitea; see release.yml.
|
||||||
|
runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
@@ -48,7 +48,9 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
- target: aarch64-unknown-linux-musl
|
- target: aarch64-unknown-linux-musl
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
runs-on: ${{ matrix.os }}
|
# GitHub retired the macos-14 image (jobs are cancelled with "configuration not supported");
|
||||||
|
# on Gitea, macos-14 is the label of the self-hosted macOS runner, so only GitHub moves.
|
||||||
|
runs-on: ${{ matrix.os == 'macos-14' && github.server_url == 'https://github.com' && 'macos-15' || matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,12 @@ cargo install matcha-cli
|
|||||||
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
|
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
|
||||||
binary. Needs a Rust toolchain; takes a few seconds.
|
binary. Needs a Rust toolchain; takes a few seconds.
|
||||||
|
|
||||||
|
**Homebrew** (macOS, Linux):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install expressive-tea/tap/matcha
|
||||||
|
```
|
||||||
|
|
||||||
**Prebuilt binary** (no Rust), from the latest GitHub release:
|
**Prebuilt binary** (no Rust), from the latest GitHub release:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
# project the current `@green-tea/core` will run — which is exactly how the
|
# project the current `@green-tea/core` will run — which is exactly how the
|
||||||
# templates sat two core releases behind for two months without a red build.
|
# templates sat two core releases behind for two months without a red build.
|
||||||
#
|
#
|
||||||
# Usage: scripts/starter-smoke.sh <node|deno|bun>
|
# Usage: scripts/starter-smoke.sh <node|deno|bun|edge>
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
RUNTIME="${1:?usage: starter-smoke.sh <node|deno|bun|edge>}"
|
RUNTIME="${1:?usage: starter-smoke.sh <node|deno|bun|edge>}"
|
||||||
@@ -30,8 +30,17 @@ PORT="${PORT:-$((20000 + RANDOM % 20000))}"
|
|||||||
|
|
||||||
WORK="$(mktemp -d)"
|
WORK="$(mktemp -d)"
|
||||||
SERVER=""
|
SERVER=""
|
||||||
|
# `matcha run` is started in its own process group (set -m below) so the whole tree dies
|
||||||
|
# together. `pkill -P` reached only direct children: on edge, wrangler's workerd is a
|
||||||
|
# grandchild, kept writing demo/.wrangler, and `rm -rf` failed with "Directory not empty".
|
||||||
|
stop_server() {
|
||||||
|
[ -n "$SERVER" ] || return 0
|
||||||
|
kill -- -"$SERVER" 2>/dev/null || true
|
||||||
|
wait "$SERVER" 2>/dev/null || true
|
||||||
|
SERVER=""
|
||||||
|
}
|
||||||
cleanup() {
|
cleanup() {
|
||||||
[ -n "$SERVER" ] && { pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; }
|
stop_server
|
||||||
rm -rf "$WORK"
|
rm -rf "$WORK"
|
||||||
}
|
}
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
@@ -55,8 +64,10 @@ echo "▸ ${CHECK[*]}"
|
|||||||
"${CHECK[@]}"
|
"${CHECK[@]}"
|
||||||
|
|
||||||
echo "▸ matcha run (boot on :$PORT)"
|
echo "▸ matcha run (boot on :$PORT)"
|
||||||
|
set -m
|
||||||
"$MATCHA" run >"$WORK/server.log" 2>&1 &
|
"$MATCHA" run >"$WORK/server.log" 2>&1 &
|
||||||
SERVER=$!
|
SERVER=$!
|
||||||
|
set +m
|
||||||
for _ in $(seq 1 60); do
|
for _ in $(seq 1 60); do
|
||||||
curl -fsS -o /dev/null "http://localhost:$PORT/" 2>/dev/null && break
|
curl -fsS -o /dev/null "http://localhost:$PORT/" 2>/dev/null && break
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -78,7 +89,7 @@ case "$zen" in
|
|||||||
esac
|
esac
|
||||||
echo "✓ serves / and streams /zen"
|
echo "✓ serves / and streams /zen"
|
||||||
|
|
||||||
pkill -P "$SERVER" 2>/dev/null || true; kill "$SERVER" 2>/dev/null || true; SERVER=""
|
stop_server
|
||||||
|
|
||||||
# Introspection runs against the same project, so it also proves the entry file
|
# Introspection runs against the same project, so it also proves the entry file
|
||||||
# the templates scaffold still exports the `app` that graph/explain import.
|
# the templates scaffold still exports the `app` that graph/explain import.
|
||||||
|
|||||||
Reference in new issue
Block a user