Commit Graph
19 Commits
Author SHA1 Message Date
Greg ShuflinandClaude Opus 4.8 3a133a28eb Add build version (commit hash) to CLI, GUI, and Android
Surface the commit a build came from as a placeholder version identifier,
until a proper version scheme exists.

- rust/lib: build.rs captures the commit hash at compile time (CI env
  override, else jj/git, else "unknown") and exposes it via a new
  version module plus a build_info() uniffi export.
- CLI: new 'about' command printing version and full commit hash.
- GUI: About card in settings, fed by a BuildInfo Slint global.
- Android: About section in settings, with the commit selectable/copyable.
- CI: pass GITEA_SHA into the APK build step so the embedded hash is
  deterministic.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 15:28:36 -07:00
Greg ShuflinandClaude Opus 4.6 41530eec8b Use absolute paths in CI scripts, add APK debugging
Build Debug APK / build (push) Failing after 2m5s
Resolve all paths from REPO_ROOT to eliminate fragile cd/relative
path issues. Add diagnostic steps to trace where the APK ends up.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-21 00:31:08 -07:00
Greg Shuflin 566650747b More iterating on CI
Build Debug APK / build (push) Failing after 14m4s
2026-03-20 22:47:20 -07:00
Greg Shuflin dd4108b137 Refactor gitea CI
Build Debug APK / build (push) Failing after 13m54s
2026-03-20 22:23:04 -07:00
Greg Shuflin ff9e1109f3 More messing with CI
Build Debug APK / build (push) Failing after 19m43s
2026-03-20 11:57:07 -07:00
Greg ShuflinandClaude Opus 4.6 9613b6aec1 Limit CI build parallelism to avoid overloading the host
Build Debug APK / build (push) Failing after 3m13s
Cap Gradle workers and Cargo build jobs to 2 each so the build
doesn't starve the machine of CPU.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 02:28:57 -07:00
Greg ShuflinandClaude Opus 4.6 f07ba0b415 Set ANDROID_USER_HOME to fix AGP writing to /.android
Build Debug APK / build (push) Failing after 6m51s
AGP tries to write metrics/settings to ~/.android but HOME is unset
in CI, causing it to write to /.android (read-only root filesystem).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 21:25:21 -07:00
Greg ShuflinandClaude Opus 4.6 d9c7e605e4 Disable JDK auto-download to fix SystemInfo crash in CI
Build Debug APK / build (push) Failing after 26s
The stacktrace shows Gradle 9's daemon JVM toolchain provisioning
tries to download a JDK, which requires native SystemInfo to detect
CPU architecture. Disabling auto-download makes Gradle use the JDK
already provided via JAVA_HOME. Also reverts buildFHSEnv and
diagnostics since the issue was never about native library paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:15:46 -07:00
Greg ShuflinandClaude Opus 4.6 5be23e0c2b Add CI diagnostics to debug SystemInfo failure
Build Debug APK / build (push) Failing after 28s
Check FHS env, /proc access, java version, and gradle.properties.
Run Gradle with --stacktrace for native init failure details.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:10:51 -07:00
Greg ShuflinandClaude Opus 4.6 5d04572fba Use Gradle wrapper inside FHS env instead of incompatible Nix gradle
Build Debug APK / build (push) Failing after 2m41s
Nix gradle is 8.14.4 but AGP 9.1.0 requires Gradle 9.1+. Switch back
to the Gradle wrapper (which downloads 9.3.1) but run it inside the
buildFHSEnv so native-platform .so files can find standard library paths.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:26:12 -07:00
Greg ShuflinandClaude Opus 4.6 e48cc5bb9d Force org.gradle.native=true to override Nix gradle default
Build Debug APK / build (push) Failing after 20s
The Nix-packaged gradle likely disables native-platform by default.
Force it on since we're running inside buildFHSEnv which provides
the standard library paths native-platform needs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:22:25 -07:00
Greg ShuflinandClaude Opus 4.6 982983b34f Use buildFHSEnv for CI to fix Gradle native-platform loading
Build Debug APK / build (push) Failing after 2m14s
Gradle extracts native .so files at runtime from JARs. These unpatched
binaries need standard FHS paths (/lib64, /usr/lib) to find their
dependencies. buildFHSEnv creates a chroot with standard paths while
keeping /nix/store accessible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:40:33 -07:00
Greg ShuflinandClaude Opus 4.6 1bee22eca8 Use Nix-packaged Gradle instead of Gradle wrapper in CI
Build Debug APK / build (push) Failing after 34s
The Gradle wrapper downloads an unpatched binary distribution whose
native-platform .so has a hardcoded ELF interpreter that doesn't exist
in Nix. Use Nix-packaged Gradle which has properly patched binaries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:25:46 -07:00
Greg ShuflinandClaude Opus 4.6 170fbcac79 Fix CI build: disable Gradle native, use --no-daemon, derive clang path from minSdk
- Set org.gradle.native=false to fix SystemInfo service error in Nix sandbox
- Add --no-daemon for CI efficiency
- Derive NDK clang binary name from minSdk instead of hardcoding API level 33

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 17:44:47 -07:00
Greg Shuflin db24a9b934 Set GRADLE_USER_HOME
Build Debug APK / build (push) Failing after 37s
2026-03-13 17:19:04 -07:00
Greg Shuflin e4219f7992 Update CI pipeline
Build Debug APK / build (push) Failing after 21s
2026-03-13 16:52:47 -07:00
Greg Shuflin 1ac2f97ddb gitea build: use correct runner name
Build Debug APK / build (push) Failing after 2m29s
2026-03-13 04:02:48 -07:00
Greg Shuflin da8d1bf624 gitea build: use correct runner name
Build Debug APK / build (push) Has been cancelled
2026-03-13 04:00:25 -07:00
Greg ShuflinandClaude Opus 4.6 efc04c186d Add Nix flake, Gitea Actions workflow, and build docs
Build Debug APK / build (push) Has been cancelled
- flake.nix: dev shell with Android SDK 35, NDK 28, Rust 1.92
  (with aarch64-linux-android target), typeshare, and JDK 17
- .gitea/workflows/build-apk.yml: builds debug APK on push to
  master, creates a pre-release with the APK attached
  (for consumption by Obtainium)
- docs/BUILD.md: local dev setup, CI runner setup, and
  Obtainium configuration instructions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 03:27:09 -07:00