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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Keep LF everywhere, including on Windows checkouts: prettier --check expects
# LF, and GitHub's Windows runners otherwise check files out with CRLF.
* text=auto eol=lf
29 changes: 12 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
name: CI

# Runs on the org-level self-hosted runners, the same pair conflower-player uses:
# [self-hosted, macOS] -> Brooklyn-Studio
# [self-hosted, Windows] -> PROTO1-P8
# Packaging is deliberately not done here; see release.yml.
# Runs on GitHub-hosted runners, never on our own machines: the repository is
# public, and a pull request from a fork runs its own code in this workflow.
# See docs/RUNNERS.md. Packaging is deliberately not done here; see release.yml.

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
macos:
runs-on: [self-hosted, macOS]
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '24'
# Self-hosted runners keep their working directory, and the generated
# folders are gitignored so checkout leaves them behind.
- run: npm run clean
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run check
- run: npm run build
- run: npm run build:seed
# Opens a real window, so the runner needs a logged-in desktop session.
# Opens a real window; GitHub's macOS runners have a desktop session.
# Gating here: this is the job that proves the packaged shell still works.
- run: npm run smoke
# The embeddable web build is a shipped artifact, so it gets the same
Expand All @@ -41,25 +41,20 @@ jobs:
- run: npm run smoke:embed

windows:
runs-on: [self-hosted, Windows]
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v5
with:
node-version: '24'
- run: npm run clean
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run format:check
- run: npm run check
- run: npm run build
- run: npm run build:seed
# Gating: PROTO1-P8 runs in a logged-in session. If the runner is ever
# re-registered as a Windows service it will lose its interactive desktop
# and this needs continue-on-error.
- run: npm run smoke
# The embed artifact is platform independent, so running it on both runners
# is redundant in principle. It runs here anyway: it is the only place it
# gets exercised while Brooklyn-Studio is offline, and redundant coverage is
# cheaper than none.
# is redundant in principle; it is cheap, so it runs on both.
- run: npm run smoke:embed
27 changes: 8 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
# from anywhere else is not possible. The two jobs are independent and each
# publishes its own assets, so one platform failing does not block the other.
#
# Runners are the org-level pair, the same ones conflower-player uses:
# [self-hosted, macOS] -> Brooklyn-Studio
# [self-hosted, Windows] -> PROTO1-P8
# The org runner group must grant this repository access.
# Runs on GitHub-hosted runners, never on our own machines (docs/RUNNERS.md).
# Only people with write access can trigger it: a tag push or a manual run.
#
# To ship:
# npm version 0.2.0 --no-git-tag-version
Expand All @@ -34,14 +32,14 @@ env:
# The tag being released, whether this was a tag push or a manual re-run.
TAG: ${{ github.event.inputs.ref || github.ref_name }}

# One release at a time: both jobs reuse a working directory on their machine.
# One release at a time, so two runs never race to publish the same tag.
concurrency:
group: release
cancel-in-progress: false

jobs:
macos:
runs-on: [self-hosted, macOS]
runs-on: macos-latest
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -64,12 +62,6 @@ jobs:
fi
echo "runner arch: $arch"

# A self-hosted runner keeps its working directory between runs, and the
# generated folders are gitignored, so checkout leaves them in place. Stale
# artifacts from an older version would otherwise be swept up by the
# release upload below.
- run: npm run clean

- run: npm ci

# electron-builder names every artifact from the package.json version, so a
Expand Down Expand Up @@ -131,7 +123,7 @@ jobs:
if-no-files-found: error

windows:
runs-on: [self-hosted, Windows]
runs-on: windows-latest
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -141,7 +133,6 @@ jobs:
with:
node-version: '24'

- run: npm run clean
- run: npm ci

- name: Tag must match package.json
Expand All @@ -157,18 +148,16 @@ jobs:
- run: npm run check
- run: npm run prepackage

# A Windows runner registered as a service has no interactive desktop, and
# the smoke test cannot open a window without one.
# Advisory, as on the mac job: ci.yml is where this gates.
- name: Smoke test
continue-on-error: true
run: npm run smoke

# See the mac job: build only, publish explicitly below.
- run: npx electron-builder --win --publish never

# A javascript action rather than the gh cli: gh is not installed on this
# runner, and assuming a cli exists on a hand-provisioned machine is how the
# first release attempt failed. This needs nothing but the runner's own node.
# A javascript action rather than the gh cli, so it needs nothing but the
# runner's own node.
- name: Publish release assets
if: startsWith(env.TAG, 'v')
uses: softprops/action-gh-release@v2
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ from one version to the next.

## [Unreleased]

Nothing yet.
### Fixed

- On Windows, editing an interface did not reload it when the workspace path
contained a short (8.3) folder name, such as `C:\Users\RUNNER~1\...`. The
watcher now follows the folder's full path.

## [0.1.1] - 2026-08-26

Expand Down
13 changes: 6 additions & 7 deletions docs/DISTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ map, theirs is merged and their mapping wins, since a document may only have one
Both run `npm run prepackage` first, which builds the host bundle, the standalone
SDK, the type declarations, and the workspace seed.

`.github/workflows/release.yml` builds and publishes both platforms on the
org-level self-hosted runners. See `RUNNERS.md` for which machines those are and
the one permission that has to be granted.
`.github/workflows/release.yml` builds and publishes both platforms on
GitHub-hosted runners. See `RUNNERS.md` for why never our own machines.

### One gotcha with npm 11 install scripts

Expand Down Expand Up @@ -78,9 +77,8 @@ JavaScript MIME type, the injected import map actually resolving `@planchette/sd
path traversal out of the workspace being refused, the file watcher reloading the
app, and pucks surviving that reload.

It opens a window, so it needs an interactive desktop session. In CI it gates the
macOS job and is advisory on Windows, since self-hosted Windows runners often run
as a service with no desktop.
It opens a window, so it needs an interactive desktop session. GitHub's hosted
runners have one; in CI it gates both jobs, and in a release it is advisory.

## Icons

Expand Down Expand Up @@ -129,7 +127,8 @@ Nothing here needs rework.

- **macOS**: get an Apple Developer ID, remove `mac.identity: null` from
`electron-builder.yml`, and set `APPLE_ID`, `APPLE_APP_SPECIFIC_PASSWORD`, and
`APPLE_TEAM_ID` on the runner so electron-builder notarizes. The ad-hoc hook
`APPLE_TEAM_ID` as repository secrets passed to the release job's environment, so
electron-builder notarizes. The ad-hoc hook
becomes a no-op you can delete.
- **Windows**: add a `win.certificateFile` or use a signing service, and drop the
SmartScreen instructions.
Expand Down
Loading
Loading