Repository navigation
Add browser-powered native development and packed Life demo [#288] #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
cca3df0
Add browser-powered PI development and offline embedding demo [#288]
ambroise-leclerc a6f625c
Provision versioned GitHub developer packages and PI starter [#288]
ambroise-leclerc 6a9a3b8
Record public developer demo validation and isolate package releases …
ambroise-leclerc 9380bf3
Avoid constructor member shadowing in developer app headers [#288]
ambroise-leclerc a52c3fd
Read developer test fixtures with bounded checked I/O [#288]
ambroise-leclerc 297947a
Add spatial Game of Life starter and native browser-build demo [#288]
ambroise-leclerc 356a8da
Record public Life demo and Linux browser validation [#288]
ambroise-leclerc 51eb04f
backup
ambroise-leclerc b6bae2e
Align packed-bitset demo with merged bridge support and simplify cell…
ambroise-leclerc 7a943c7
Record verified packed-bitset demo and public 0.3.0 distribution [#289]
ambroise-leclerc 9bbccd6
Merge develop and preserve native developer test integration [#288]
ambroise-leclerc 3c1c618
Expire abandoned developer transactions, honor the installed lock and…
ambroise-leclerc 72e5519
Remove an unused import from the distribution check [#288]
ambroise-leclerc 86b4d25
Split the developer environment's complex functions for the CodeScene…
ambroise-leclerc 3982b0a
Refuse bridge connections without an Origin, check Pages before publi…
ambroise-leclerc 933509b
Split the store helpers, import resolution and Life starter types fur…
ambroise-leclerc 20aa8bc
Keep staging cleanup inside the project, fix wf list and split the lo…
ambroise-leclerc 5c99800
Split bootstrap I/O, registry access, starter recipes and store paths…
ambroise-leclerc a5fbee4
Flatten the lock, registry, bootstrap and store helpers further [#288]
ambroise-leclerc 59295a0
Move lock validation and archive reading into their own modules [#288]
ambroise-leclerc f7c73dd
Move version pinning and peer resolution out of the package resolver …
ambroise-leclerc fc623c9
Fall through unresolved export conditions and refuse staged paths tha…
ambroise-leclerc ec4c907
Move export conditions out of the entry resolver [#288]
ambroise-leclerc 1a2d6a5
Simplify package entry resolution [#288]
ambroise-leclerc 4c6ef41
Cover developer store errors and application bootstrap; exclude examp…
ambroise-leclerc 058dd13
Split large assertion blocks in developer tests [#288]
ambroise-leclerc 921e46e
Bind developer bridge callbacks to store methods [#288]
ambroise-leclerc 5f91f6d
Revert "Bind developer bridge callbacks to store methods [#288]"
ambroise-leclerc 20bbeea
Register developer bridge callbacks through one shared template [#288]
ambroise-leclerc 5047784
Exempt the bridge-facing developer store from Primitive Obsession [#288]
ambroise-leclerc 7f6d75c
Set the Codecov patch target to 95% [#288]
ambroise-leclerc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,126 @@ | ||
| name: Developer packages | ||
|
|
||
| on: | ||
| push: | ||
| tags: ['developer-v*'] | ||
| branches: ['**'] | ||
| paths: | ||
| - 'src/developer/**' | ||
| - 'src/pi/**' | ||
| - 'src/life/**' | ||
| - 'tools/developer/**' | ||
| - 'tools/assets/package*.json' | ||
| - 'include/system/DeveloperReleaseData.hpp' | ||
| - '.github/workflows/DeveloperDistribution.yml' | ||
| pull_request: | ||
| branches: [develop, master] | ||
| paths: | ||
| - 'src/developer/**' | ||
| - 'src/pi/**' | ||
| - 'src/life/**' | ||
| - 'tools/developer/**' | ||
| - 'tools/assets/package*.json' | ||
| - 'include/system/DeveloperReleaseData.hpp' | ||
| - '.github/workflows/DeveloperDistribution.yml' | ||
| workflow_dispatch: | ||
| inputs: | ||
| publish: | ||
| description: Publish the pinned version to GitHub Pages | ||
| type: boolean | ||
| default: false | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| package: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| cache: npm | ||
| cache-dependency-path: tools/assets/package-lock.json | ||
| - name: Install pinned maintenance dependencies | ||
| run: npm ci --prefix tools/assets --ignore-scripts | ||
| - name: Build and verify the environment and starter packages | ||
| run: | | ||
| node tools/developer/build.mjs build-distribution | ||
| node tools/developer/build.mjs build-distribution-repeat | ||
| cmp build-distribution/environment.tgz build-distribution-repeat/environment.tgz | ||
| cmp build-distribution/pi-starter.tgz build-distribution-repeat/pi-starter.tgz | ||
| cmp build-distribution/life-starter.tgz build-distribution-repeat/life-starter.tgz | ||
| cmp include/system/DeveloperReleaseData.hpp build-distribution/DeveloperReleaseData.hpp | ||
| node --test tools/developer/check.mjs tools/developer/distribution-check.mjs | ||
| - name: Check the dedicated release tag | ||
| if: startsWith(github.ref, 'refs/tags/developer-v') | ||
| env: | ||
| RELEASE_TAG: ${{ github.ref_name }} | ||
| run: node tools/developer/release-check.mjs "$RELEASE_TAG" | ||
| - uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: developer-distribution | ||
| if-no-files-found: error | ||
| path: | | ||
| build-distribution/environment.tgz | ||
| build-distribution/pi-starter.tgz | ||
| build-distribution/life-starter.tgz | ||
| build-distribution/provision.json | ||
| build-distribution/DeveloperReleaseData.hpp | ||
|
|
||
| publish: | ||
| if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/developer-v') || (github.event_name == 'workflow_dispatch' && inputs.publish)) | ||
| needs: package | ||
| runs-on: ubuntu-24.04 | ||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| concurrency: | ||
| group: developer-pages-publication | ||
| cancel-in-progress: false | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version: 24 | ||
| - uses: actions/download-artifact@v4 | ||
| with: | ||
| name: developer-distribution | ||
| path: build-distribution | ||
| - name: Check the configured Pages source before pushing | ||
| run: node tools/developer/pages.mjs --check | ||
| - name: Preserve existing versions and publish the static branch | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
| gh auth setup-git | ||
| site="$RUNNER_TEMP/developer-pages" | ||
| git init --initial-branch=gh-pages "$site" | ||
| git -C "$site" remote add origin "https://github.com/$GITHUB_REPOSITORY.git" | ||
| result=0 | ||
| git -C "$site" ls-remote --exit-code --heads origin gh-pages > "$RUNNER_TEMP/developer-pages-ref" || result=$? | ||
| if [ "$result" = 0 ]; then | ||
| git -C "$site" fetch --depth=1 origin gh-pages | ||
| git -C "$site" switch --detach FETCH_HEAD | ||
| elif [ "$result" != 2 ]; then | ||
| exit "$result" | ||
| fi | ||
| node tools/developer/site.mjs build-distribution "$site" | ||
| git -C "$site" config user.name "$GITHUB_ACTOR" | ||
| git -C "$site" config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
| git -C "$site" add .nojekyll index.html developer | ||
| if ! git -C "$site" diff --cached --quiet; then | ||
| version=$(node -p "require('./tools/developer/distribution.json').version") | ||
| git -C "$site" commit -m "Publish developer packages $version [#288]" | ||
| git -C "$site" push origin HEAD:refs/heads/gh-pages | ||
| fi | ||
| - name: Request the configured Pages build | ||
| run: node tools/developer/pages.mjs | ||
| - name: Archive tagged packages in a dedicated prerelease | ||
| if: startsWith(github.ref, 'refs/tags/developer-v') | ||
| env: | ||
| RELEASE_TAG: ${{ github.ref_name }} | ||
| run: node tools/developer/archive-release.mjs "$RELEASE_TAG" build-distribution | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,5 +4,9 @@ coverage: | |
| default: | ||
| target: auto | ||
| threshold: 0.2% | ||
| patch: | ||
| default: | ||
| target: 95% | ||
| ignore: | ||
| - "webtest/**" | ||
| - "src/**" | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.