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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14,818 changes: 7,424 additions & 7,394 deletions .aoci/baseline.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*.yml text eol=lf
*.desktop text eol=lf
*.xml text eol=lf
openless-all/app/linux-egui/packaging/AppRun text eol=lf
openless-all/app/linux-egui/packaging/openless-desktop-integration text eol=lf
openless-all/linux/egui/packaging/AppRun text eol=lf
openless-all/linux/egui/packaging/openless-desktop-integration text eol=lf
# Keep imported model bytes and unified-diff context markers intact.
*.mcy binary
openless-all/app/scripts/micyou-dsp.patch text eol=lf whitespace=-blank-at-eol
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/android-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
raw="${INPUT_ABIS:-aarch64}"
fast="${INPUT_FAST_PROFILE:-false}"
fi
matrix="$(node openless-all/app/scripts/android-abi-matrix.mjs parse "$raw")"
matrix="$(node openless-all/android/scripts/android-abi-matrix.mjs parse "$raw")"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
abi_list="$(node -e 'const m=JSON.parse(process.argv[1]); process.stdout.write(m.map(x=>x.abi).join(","))' "$matrix")"
gradle_list="$(node -e 'const m=JSON.parse(process.argv[1]); process.stdout.write(m.map(x=>x.gradle_abi).join(","))' "$matrix")"
Expand Down Expand Up @@ -296,27 +296,27 @@ jobs:

- name: Copy Android scaffolding (Kotlin + XML)
working-directory: openless-all/app
run: node scripts/copy-android-scaffolding.mjs
run: node ../android/scripts/copy-android-scaffolding.mjs

- name: Merge APK v1 manifest permissions
working-directory: openless-all/app
run: node scripts/merge-android-v1-manifest.mjs
run: node ../android/scripts/merge-android-v1-manifest.mjs

- name: Merge overlay / accessibility manifest
working-directory: openless-all/app
run: node scripts/merge-android-overlay-manifest.mjs
run: node ../android/scripts/merge-android-overlay-manifest.mjs

- name: Merge Shizuku manifest
working-directory: openless-all/app
run: node scripts/merge-android-shizuku-manifest.mjs
run: node ../android/scripts/merge-android-shizuku-manifest.mjs

- name: Patch Shizuku Gradle dependencies
working-directory: openless-all/app
run: node scripts/patch-android-shizuku-deps.mjs
run: node ../android/scripts/patch-android-shizuku-deps.mjs

- name: Merge updater / install manifest
working-directory: openless-all/app
run: node scripts/merge-android-updater-manifest.mjs
run: node ../android/scripts/merge-android-updater-manifest.mjs

- name: Configure Android release signing
if: needs.plan.outputs.mode == 'release' || needs.plan.outputs.signing == 'signed-debug'
Expand All @@ -328,7 +328,7 @@ jobs:
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
# signed_debug: also wire debug buildType to the release keystore
OPENLESS_SIGN_DEBUG: ${{ needs.plan.outputs.signing == 'signed-debug' && 'true' || 'false' }}
run: node scripts/configure-android-release-signing.mjs
run: node ../android/scripts/configure-android-release-signing.mjs

- name: Prime Gradle wrapper
timeout-minutes: 10
Expand Down Expand Up @@ -390,7 +390,7 @@ jobs:
OPENLESS_APK_MODE: ${{ needs.plan.outputs.mode }}
OPENLESS_APK_LABEL: ${{ needs.plan.outputs.label }}
OPENLESS_EXPECTED_GRADLE_ABIS: ${{ matrix.gradle_abi }}
run: node scripts/collect-android-split-apks.mjs
run: node ../android/scripts/collect-android-split-apks.mjs

- name: Upload Android APK artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -516,7 +516,7 @@ jobs:
set -euo pipefail
out_dir="${{ steps.stage.outputs.out_dir }}"
version="$(node -p "require('./package.json').version")"
node scripts/sign-android-apks.mjs \
node ../android/scripts/sign-android-apks.mjs \
"$out_dir/OpenLess_${version}_arm64-v8a.apk" \
"$out_dir/OpenLess_${version}_armeabi-v7a.apk" \
"$out_dir/OpenLess_${version}_x86.apk" \
Expand Down
89 changes: 69 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
branches: [main, beta]
pull_request:
branches: [main, beta]
types: [opened, synchronize, reopened, labeled]
workflow_dispatch:
inputs:
live_acceptance:
Expand Down Expand Up @@ -433,7 +434,7 @@ jobs:
# prebuilt download of its own.
- name: Prepare sherpa-onnx Android libraries
timeout-minutes: 10
run: echo "SHERPA_ONNX_LIB_DIR=$(node scripts/sherpa-onnx-android.mjs)" >> "$GITHUB_ENV"
run: echo "SHERPA_ONNX_LIB_DIR=$(node ../android/scripts/sherpa-onnx-android.mjs)" >> "$GITHUB_ENV"

- name: Check Tauri backend (Android target)
timeout-minutes: 25
Expand All @@ -455,7 +456,7 @@ jobs:
cargo check --locked --manifest-path src-tauri/Cargo.toml --target x86_64-linux-android

- name: Copy Android production and test scaffolding
run: node scripts/copy-android-scaffolding.mjs
run: node ../android/scripts/copy-android-scaffolding.mjs

- name: Restore Android Rime instrumentation dependencies
id: rime_cache
Expand All @@ -479,10 +480,10 @@ jobs:
key: ${{ steps.rime_cache.outputs.cache-primary-key }}

- name: Merge Shizuku manifest
run: node scripts/merge-android-shizuku-manifest.mjs
run: node ../android/scripts/merge-android-shizuku-manifest.mjs

- name: Patch Shizuku Gradle dependencies
run: node scripts/patch-android-shizuku-deps.mjs
run: node ../android/scripts/patch-android-shizuku-deps.mjs

- name: Run JVM credential tests and compile instrumentation tests
timeout-minutes: 15
Expand All @@ -497,7 +498,7 @@ jobs:
--no-daemon

- name: Check Android emulator cleanup
run: bash scripts/android-emulator-cleanup.test.sh
run: bash ../android/scripts/android-emulator-cleanup.test.sh

- name: Enable KVM for Android instrumentation tests
run: |
Expand Down Expand Up @@ -704,8 +705,7 @@ jobs:
# The report is committed so the ArkTS coverage is reviewable; a stale
# report hides commands that the Harmony host does not implement yet.
run: |
node scripts/audit-harmony-ipc.mjs
git diff --exit-code harmony/ipc-audit.json
node ../harmony/scripts/audit-harmony-ipc.mjs --check
- name: Harmony ArkTS contracts
run: |
node scripts/harmony-entry-startup.test.mjs
Expand Down Expand Up @@ -742,17 +742,66 @@ jobs:
OPENLESS_HARMONY_CHANNEL: none
run: |
set -euo pipefail
bash scripts/prepare-harmony-sdk.sh
bash scripts/package-harmony-hap.sh
bash ../harmony/scripts/prepare-harmony-sdk.sh
bash ../harmony/scripts/package-harmony-hap.sh
# AppGallery needs a numeric versionName, so the packaging script keeps
# only the numeric prefix ("2.0.2", not "2.0.2-Beta.1").
version_name=$(node -p "require('./package.json').version" | sed 's/[-+].*//')
version_code=$(cat linux-egui/package-revision)
bash scripts/verify-harmony-hap.sh \
version_code=$(cat ../linux/egui/package-revision)
bash ../harmony/scripts/verify-harmony-hap.sh \
target/harmony-packages/OpenLess_harmony_arm64.hap \
"${OPENLESS_HARMONY_TOOLCHAIN:-$HOME/.local/share/harmony/current}" \
"$version_name" "$version_code" --allow-unsigned

# Linux automation stays paused by default; this label enables validation only.
linux-validation:
if: github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:validate-linux')
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
contents: read
defaults:
run:
working-directory: openless-all/app
steps:
- uses: actions/checkout@v4
with:
submodules: false
- uses: ./.github/actions/setup-linux-dependencies
- uses: actions/setup-node@v4
with:
node-version: '22'
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: swatinem/rust-cache@v2
with:
workspaces: 'openless-all/app -> target'
key: linux-validation
save-if: false
- name: Validate locked workspace metadata
run: |
cargo metadata --no-deps --locked --offline --format-version 1 --manifest-path Cargo.toml >/dev/null
cargo metadata --no-deps --locked --offline --format-version 1 --manifest-path ../linux/egui/Cargo.toml >/dev/null
- name: Test, lint and build the Linux host
run: |
cargo test --locked -p openless-linux-egui
cargo clippy --locked -p openless-linux-egui --all-targets -- -D warnings
cargo build --locked --release -p openless-linux-egui
- name: Build and test the Fcitx5 plugin
run: |
cmake -S ../linux/fcitx5-plugin -B ../linux/fcitx5-plugin/build
cmake --build ../linux/fcitx5-plugin/build -j
ctest --test-dir ../linux/fcitx5-plugin/build --output-on-failure
- name: Package and verify locally
run: |
set -euo pipefail
APP_VERSION=$(node -p "require('./package.json').version")
REVISION=$(cat ../linux/egui/package-revision)
export OPENLESS_LINUX_VERSION="${APP_VERSION%%+*}-${REVISION}"
bash ../linux/scripts/package-linux-egui.sh
bash ../linux/scripts/verify-linux-egui-packages.sh

native-capsule:
# The capsule crates compile into the desktop shells. They get their own macOS + Windows
# runners only because their `ui,host` feature set is not built anywhere else, and that
Expand Down Expand Up @@ -879,7 +928,7 @@ jobs:
if: runner.os == 'Windows'
timeout-minutes: 15
shell: pwsh
run: ./scripts/prepare-windows-sherpa.ps1
run: ./../windows/scripts/prepare-windows-sherpa.ps1

- name: Install frontend dependencies
timeout-minutes: 10
Expand All @@ -888,13 +937,13 @@ jobs:
- name: Check Windows prerequisites
if: matrix.preflight
shell: pwsh
run: ./scripts/windows-preflight.ps1 -Toolchain msvc
run: ./../windows/scripts/windows-preflight.ps1 -Toolchain msvc

- name: Check PowerShell scripts
if: matrix.preflight
shell: pwsh
run: |
foreach ($script in @("./scripts/windows-preflight.ps1", "./scripts/windows-build-gnu.ps1", "./scripts/windows-runtime-smoke.ps1", "./scripts/prepare-windows-sherpa.ps1")) {
foreach ($script in @("./../windows/scripts/windows-preflight.ps1", "./../windows/scripts/windows-build-gnu.ps1", "./../windows/scripts/windows-runtime-smoke.ps1", "./../windows/scripts/prepare-windows-sherpa.ps1")) {
$errors = $null
[System.Management.Automation.PSParser]::Tokenize((Get-Content -Raw $script), [ref]$errors) | Out-Null
if ($errors) {
Expand Down Expand Up @@ -992,24 +1041,24 @@ jobs:
timeout-minutes: 10
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/openless-all/app/src-tauri/target
run: python scripts/test-windows-hang-diagnostics.py
run: python ../windows/scripts/test-windows-hang-diagnostics.py

- name: Run owner-thread target ownership tests
timeout-minutes: 10
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/openless-all/app/src-tauri/target
run: python scripts/test-windows-runtime-target.py
run: python ../windows/scripts/test-windows-runtime-target.py

- name: Run real Windows runtime ownership lifecycle
if: runner.os == 'Windows'
timeout-minutes: 15
env:
CARGO_TARGET_DIR: ${{ github.workspace }}/openless-all/app/src-tauri/target
run: python scripts/test-windows-runtime-target.py --runtime
run: python ../windows/scripts/test-windows-runtime-target.py --runtime

- name: Run Windows symbol-pair format tests
timeout-minutes: 10
run: python scripts/windows-symbol-pair.test.py
run: python ../windows/scripts/windows-symbol-pair.test.py

- name: Run Rust-only backend unit tests (Windows)
# The standalone test crate does not link the full Tauri app lib; it verifies the public
Expand Down Expand Up @@ -1046,7 +1095,7 @@ jobs:
- name: Compile the TSF IME (x64, Release)
if: runner.os == 'Windows'
timeout-minutes: 20
working-directory: openless-all/app/windows-ime
working-directory: openless-all/windows/ime
run: msbuild OpenLessIme.sln /p:Configuration=Release /p:Platform=x64 /m /v:minimal

- name: Verify version sync across all 5 files
Expand Down Expand Up @@ -1181,7 +1230,7 @@ jobs:
- name: Prepare Windows Sherpa static libraries
timeout-minutes: 15
shell: pwsh
run: ./scripts/prepare-windows-sherpa.ps1
run: ./../windows/scripts/prepare-windows-sherpa.ps1
- run: npm ci
timeout-minutes: 10
- run: npm run build
Expand Down
Loading
Loading