Repository navigation
Feat windows #12
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
Feat windows #12
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
bbd295d
add Windows support through shared native IPC
k-kozika f2b6abd
fix private runtime initialization races and ancestor checks
k-kozika 8672914
fix native SDK installation and container packaging
k-kozika 531d76c
use the published SDK endpoint for browser write gating
k-kozika d574c9f
isolate foreign runtime ownership regression fixtures
k-kozika b94ccde
verify descendant termination through pipe closure
k-kozika d5c4532
align architecture with shared local runtime
k-kozika f5fddb5
preserve utf-8 native requests in python
k-kozika 9652524
fix console detection in headless Windows tests
k-kozika 6b5c288
fix cross-platform runtime and native packaging
k-kozika 215b12e
align fallback runtime test paths
k-kozika 097513c
stage local adapters from cargo artifacts
k-kozika c5c50b9
bundle python library from cargo artifacts
k-kozika da6a3aa
read windows console input as unicode
k-kozika f195c50
reject incompatible python wheel libraries
k-kozika 6590891
complete windows installation instructions
k-kozika 28728c3
preserve cancelled startup cleanup
k-kozika 65b0266
reject nonhost cargo wheel targets
k-kozika 1ef57f4
correct unix runtime fallback documentation
k-kozika 92af267
prevent python local shutdown deadlocks
k-kozika 85dcfa0
merge main into feat-windows
k-kozika c76b176
update Cargo.lock
k-kozika e068b3e
replace deprecated udp sends and fix lint warnings
k-kozika 267d5a5
migrate native benchmark fixture to runtime v2
k-kozika 24d2104
ignore empty runtime environment overrides
k-kozika c8d449e
configure source adapter builds for musl
k-kozika 1f25758
create private runtimes in npm smoke tests
k-kozika e41f577
isolate mobile fixture runtime roots
k-kozika 066a37b
isolate rust publication test roots
k-kozika 481ee8a
create missing relative directories on windows
k-kozika 3556515
Merge branch 'main' into feat-windows
k-kozika 3e23c79
ignore empty approval runtime overrides
k-kozika f00171a
derive macos wheel deployment tags from binaries
k-kozika c2f7c86
Merge branch 'feat-windows' of github.com:omochi-ui/omochi into feat-…
k-kozika 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| name: Local SDK adapters | ||
| on: | ||
| pull_request: | ||
| paths-ignore: ['apps/site/**', '.github/workflows/site.yml'] | ||
| push: | ||
| branches: [main] | ||
| workflow_call: | ||
| inputs: | ||
| ref: | ||
| type: string | ||
| default: '' | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| adapters: | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - { target: x86_64-unknown-linux-gnu, runner: ubuntu-22.04, image: manylinux_2_28_x86_64, libc: glibc } | ||
| - { target: aarch64-unknown-linux-gnu, runner: ubuntu-22.04-arm, image: manylinux_2_28_aarch64, libc: glibc } | ||
| - { target: x86_64-unknown-linux-musl, runner: ubuntu-22.04, image: musllinux_1_2_x86_64, libc: musl } | ||
| - { target: aarch64-unknown-linux-musl, runner: ubuntu-22.04-arm, image: musllinux_1_2_aarch64, libc: musl } | ||
| - { target: x86_64-apple-darwin, runner: macos-15-intel } | ||
| - { target: aarch64-apple-darwin, runner: macos-15 } | ||
| - { target: x86_64-pc-windows-msvc, runner: windows-2025 } | ||
| - { target: aarch64-pc-windows-msvc, runner: windows-11-arm } | ||
| runs-on: ${{ matrix.runner }} | ||
| timeout-minutes: 45 | ||
| env: | ||
| MACOSX_DEPLOYMENT_TARGET: '11.0' | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| with: | ||
| persist-credentials: false | ||
| ref: ${{ inputs.ref || github.sha }} | ||
| - uses: oven-sh/setup-bun@v2 | ||
| with: | ||
| bun-version-file: .bun-version | ||
| - uses: actions/setup-node@v7 | ||
| with: | ||
| node-version: '24' | ||
| package-manager-cache: false | ||
| - uses: actions/setup-python@v7 | ||
| with: | ||
| python-version: '3.14' | ||
| - uses: dtolnay/rust-toolchain@stable | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: | | ||
| packages/sdk/rust -> target | ||
| crates -> target | ||
| - run: bun install --frozen-lockfile | ||
| - run: bun run --filter @omochi-ui/core build | ||
| - run: bun run --filter @omochi-ui/sdk build | ||
| - if: runner.os == 'Linux' | ||
| name: Build portable Linux distributions and run native tests | ||
| run: >- | ||
| docker run --rm -v "$PWD:/io" -w /io -e OMOCHI_LIBC=${{ matrix.libc }} | ||
| quay.io/pypa/${{ matrix.image }} bash scripts/ci-local-linux.sh | ||
| - if: runner.os != 'Linux' | ||
| run: python scripts/build-local.py --release | ||
| - if: runner.os != 'Linux' | ||
| run: python -m pip install build hatchling typing_extensions | ||
| - if: runner.os != 'Linux' | ||
| run: python -m build --wheel --outdir artifacts/local-python packages/sdk/python | ||
| - if: matrix.libc != 'musl' | ||
| run: python -m pip install typing_extensions | ||
| - if: matrix.libc != 'musl' | ||
| run: python scripts/test-local-adapters.py | ||
| - if: runner.os != 'Linux' | ||
| run: cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-local | ||
| - if: runner.os != 'Linux' | ||
| name: Verify Rust media registration | ||
| run: cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-ui --test resources | ||
| - if: runner.os == 'Windows' | ||
| name: Reject another Windows user's token | ||
| shell: pwsh | ||
| run: | | ||
| $name = 'omochi_' + [guid]::NewGuid().ToString('N').Substring(0,8) | ||
| $password = 'Aa1!' + [guid]::NewGuid().ToString('N') | ||
| Write-Output "::add-mask::$password" | ||
| New-LocalUser -Name $name -Password (ConvertTo-SecureString $password -AsPlainText -Force) | Out-Null | ||
| Add-LocalGroupMember -Group (Get-LocalGroup -SID 'S-1-5-32-545').Name -Member $name | ||
| try { | ||
| $env:OMOCHI_ACL_TEST_USER = $name | ||
| $env:OMOCHI_ACL_TEST_PASSWORD = $password | ||
| cargo test --manifest-path packages/sdk/rust/Cargo.toml -p omochi-local --test windows_acl | ||
| if ($LASTEXITCODE -ne 0) { throw 'ACL isolation test failed' } | ||
| } finally { Remove-LocalUser -Name $name } | ||
| - if: matrix.libc != 'musl' | ||
| run: cargo test --manifest-path crates/Cargo.toml -p omochi-process | ||
| - if: runner.os == 'Windows' | ||
| name: Verify console Unicode and cancellable redirected input | ||
| run: cargo test --manifest-path crates/Cargo.toml -p omochi-utils --test windows_input | ||
| - if: runner.os == 'Windows' | ||
| name: Verify store locks and revocation acknowledgements | ||
| run: cargo test --manifest-path crates/Cargo.toml -p omochi-transport --test local_persistence | ||
| - if: runner.os == 'Windows' | ||
| name: Build native services with browser assets | ||
| run: bun run build:native | ||
| - if: runner.os == 'Windows' | ||
| name: Verify archive installation and default runtime | ||
| run: python scripts/test-install-native.py | ||
| - if: runner.os == 'Windows' | ||
| run: python tests/sdk/socket_ownership.py | ||
| - if: runner.os == 'Windows' | ||
| name: Exercise SDK to gateway to hub | ||
| run: | | ||
| python -m pip install "websockets>=14" | ||
| python scripts/test-local-native.py | ||
| - uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: local-node-${{ matrix.target }} | ||
| path: artifacts/local/ | ||
| if-no-files-found: error | ||
| - uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: local-python-${{ matrix.target }} | ||
| path: artifacts/local-python/*.whl | ||
| if-no-files-found: error |
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
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
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.