fixing build steps again
CI / Rust Format (pull_request) Successful in 21s
CI / TypeScript Lint + Typecheck (pull_request) Successful in 17s
CI / TypeScript Tests + Coverage (pull_request) Successful in 35s
CI / Rust Tests + Coverage (pull_request) Successful in 55s
CI / Dependency-Track (BOM) (pull_request) Successful in 24s
CI / Clippy (SARIF) (pull_request) Successful in 1m26s
CI / SonarQube (pull_request) Successful in 41s
CI / Electron Release Build (pull_request) Successful in 2m50s
CI / E2E Tests (Playwright + Electron) (pull_request) Failing after 4m35s

This commit is contained in:
2026-05-07 15:39:27 -04:00
parent cac5134a40
commit 509a77f481
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
--platform ubuntu-latest=catthehacker/ubuntu:act-24.04
--workflows .gitea/workflows/ci-local.yml
--workflows .act/ci-local.yml
--artifact-server-path /tmp/act-artifacts
--pull=false
+3 -2
View File
@@ -18,8 +18,9 @@ function binaryPath(): string {
// Production: binary is placed in resources/ by Electron Forge extraResource
return path.join(process.resourcesPath, exe);
}
// Dev: Cargo builds into workspace target/debug/
return path.join(__dirname, '..', 'target', 'debug', exe);
// Dev: Cargo builds into workspace target/debug/ (or CARGO_TARGET_DIR on CI)
const cargoTargetDir = process.env.CARGO_TARGET_DIR || path.join(__dirname, '..', 'target');
return path.join(cargoTargetDir, 'debug', exe);
}
export function startBridge(): void {
+3 -2
View File
@@ -1,9 +1,10 @@
'use strict';
const targetDir = process.env.CARGO_TARGET_DIR || 'target';
const rustBinary =
process.platform === 'win32'
? 'target/release/ByteDraft.exe'
: 'target/release/ByteDraft';
? `${targetDir}/release/ByteDraft.exe`
: `${targetDir}/release/ByteDraft`;
module.exports = {
packagerConfig: {
+1 -1
View File
@@ -27,7 +27,7 @@ fi
ACT_FLAGS=(
--container-daemon-socket "unix://$SOCKET"
--workflows "$REPO_ROOT/.gitea/workflows/ci-local.yml"
--workflows "$REPO_ROOT/.act/ci-local.yml"
)
run_job() {