Fix CI smoke test compile scope and PE fixture size.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-13 17:24:46 +03:00
Unverified
parent 70937efca6
commit 7879ae681d
5 changed files with 3 additions and 7 deletions
-1
View File
@@ -24,7 +24,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-gradle - uses: ./.github/actions/setup-java-gradle
- uses: android-actions/setup-android@v3
- run: bash scripts/ci-test-compile.sh - run: bash scripts/ci-test-compile.sh
test-rust: test-rust:
+1 -2
View File
@@ -52,11 +52,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: ./.github/actions/setup-java-gradle - uses: ./.github/actions/setup-java-gradle
- uses: android-actions/setup-android@v3
- uses: ./.github/actions/set-version - uses: ./.github/actions/set-version
with: with:
version: ${{ needs.resolve-version.outputs.version }} version: ${{ needs.resolve-version.outputs.version }}
- name: Compile JVM and Android release sources - name: Compile JVM release sources
run: bash scripts/ci-test-compile.sh run: bash scripts/ci-test-compile.sh
test-rust: test-rust:
+1 -1
View File
@@ -34,7 +34,7 @@ for name, machine in [
("FromChat-Setup-9.9.9-windows-arm64.exe", 0xAA64), ("FromChat-Setup-9.9.9-windows-arm64.exe", 0xAA64),
]: ]:
path = root / name path = root / name
data = bytearray(0x40) data = bytearray(0x80)
struct.pack_into("<I", data, 0x3C, 0x40) struct.pack_into("<I", data, 0x3C, 0x40)
struct.pack_into("<H", data, 0x44, machine) struct.pack_into("<H", data, 0x44, machine)
path.write_bytes(data) path.write_bytes(data)
-2
View File
@@ -5,7 +5,5 @@ set -euo pipefail
:app:shared:compileKotlinJvm \ :app:shared:compileKotlinJvm \
:utils:shared:compileKotlinJvm \ :utils:shared:compileKotlinJvm \
:app:desktop:compileKotlin \ :app:desktop:compileKotlin \
:app:shared:compileAndroidMain \
:app:android:compileReleaseKotlin \
--no-daemon \ --no-daemon \
--console=plain --console=plain
+1 -1
View File
@@ -38,7 +38,7 @@ pe_machine() {
import struct, sys import struct, sys
path = sys.argv[1] path = sys.argv[1]
with open(path, "rb") as f: with open(path, "rb") as f:
data = f.read(0x40) data = f.read(0x80)
pe_off = struct.unpack_from("<I", data, 0x3C)[0] pe_off = struct.unpack_from("<I", data, 0x3C)[0]
machine = struct.unpack_from("<H", data, pe_off + 4)[0] machine = struct.unpack_from("<H", data, pe_off + 4)[0]
print(machine) print(machine)