Skip to content

Commit 2f1c5aa

Browse files
ci(desktop): stub libcronet bundle resource for compile-smoke jobs
The new tauri.linux.conf.json / tauri.windows.conf.json libcronet resources are validated by tauri-build at compile time, but the compile-smoke jobs (rust nix clippy/codegen, desktop-linux, desktop-windows) don't stage the cores — so the build failed with 'resource path binaries/libcronet.{so,dll} doesn't exist'. Stub a placeholder before each compile, mirroring the existing wintun.dll stub.
1 parent f8508da commit 2f1c5aa

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,14 @@ jobs:
122122
- name: Nix store cache
123123
uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
124124

125+
- name: Stub the libcronet bundle resource (clippy/codegen build the app)
126+
run: |
127+
# clippy/codegen compile kasumi-desktop, whose tauri.linux.conf.json
128+
# declares the libcronet.so resource; tauri-build checks the path exists.
129+
# The real lib is fetched only for the bundle — a placeholder suffices.
130+
mkdir -p src-tauri/binaries
131+
: > src-tauri/binaries/libcronet.so
132+
125133
- name: fmt + clippy + test + codegen drift
126134
run: |
127135
nix develop --command bash -euo pipefail -c '
@@ -171,6 +179,13 @@ jobs:
171179
bun install --frozen-lockfile
172180
( cd frontend && bun run build )
173181
182+
- name: Stub the libcronet bundle resource (compile-smoke doesn't bundle)
183+
run: |
184+
# tauri-build validates tauri.linux.conf.json's libcronet.so resource at
185+
# compile time; the real lib is fetched only for the bundle. Placeholder.
186+
mkdir -p src-tauri/binaries
187+
: > src-tauri/binaries/libcronet.so
188+
174189
- name: Compile the Tauri app (no bundle)
175190
run: cargo build -p kasumi-desktop
176191

@@ -206,14 +221,15 @@ jobs:
206221
bun install --frozen-lockfile
207222
( cd frontend && bun run build )
208223
209-
- name: Stub the wintun bundle resource (compile-smoke doesn't bundle)
224+
- name: Stub the bundle resources (compile-smoke doesn't bundle)
210225
shell: bash
211226
run: |
212227
# tauri-build validates declared bundle.resources at compile time. The
213-
# real wintun.dll is fetched only for the nightly/release bundle; a
214-
# placeholder satisfies the path check for this compile-only job.
228+
# real wintun.dll / libcronet.dll are fetched only for the nightly/release
229+
# bundle; placeholders satisfy the path check for this compile-only job.
215230
mkdir -p src-tauri/binaries
216231
: > src-tauri/binaries/wintun.dll
232+
: > src-tauri/binaries/libcronet.dll
217233
218234
- name: Compile the Tauri app (no bundle)
219235
run: cargo build -p kasumi-desktop

0 commit comments

Comments
 (0)