Commit Graph

31 Commits

Author SHA1 Message Date
Omar McAdam
2b91b4d777 refactor: repo folder structure (#1038)
* refactor(repo): move OpenWork apps into apps and ee layout

Rebase the monorepo layout migration onto the latest dev changes so the moved app, desktop, share, and cloud surfaces keep working from their new paths. Carry the latest deeplink, token persistence, build, Vercel, and docs updates forward to avoid stale references and broken deploy tooling.

* chore(repo): drop generated desktop artifacts

Ignore the moved Tauri target and sidecar paths so local cargo checks do not pollute the branch. Remove the accidentally committed outputs from the repo while keeping the layout migration intact.

* fix(release): drop built server cli artifact

Stop tracking the locally built apps/server/cli binary so generated server outputs do not leak into commits. Also update the release workflow to check the published scoped package name for @openwork/server before deciding whether npm publish is needed.

* fix(workspace): add stable CLI bin wrappers

Point the server and router package bins at committed wrapper scripts so workspace installs can create shims before dist outputs exist. Keep the wrappers compatible with built binaries and source checkouts to avoid Vercel install warnings without changing runtime behavior.
2026-03-19 11:41:38 -07:00
blacksmith-sh[bot]
bd78fd1300 Migrate workflows to Blacksmith (#927)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
(cherry picked from commit a2e043f852)
2026-03-15 16:06:20 -07:00
Benjamin Shafii
ce65056615 revert: roll back post-5831626 CI pipeline changes 2026-03-15 13:03:03 -07:00
Omar McAdam
83459c3352 ci: split desktop release packaging (#935) 2026-03-15 10:05:07 -07:00
Omar McAdam
b3040ce0dd ci: fix windows release diagnostics (#934) 2026-03-15 08:08:10 -07:00
Omar McAdam
a570ce7880 ci: streamline desktop release packaging (#933) 2026-03-15 07:55:48 -07:00
Omar McAdam
107ca63e80 ci: pin release runners per target (#929) 2026-03-14 21:53:41 -07:00
blacksmith-sh[bot]
a2e043f852 Migrate workflows to Blacksmith (#927)
Co-authored-by: blacksmith-sh[bot] <157653362+blacksmith-sh[bot]@users.noreply.github.com>
2026-03-14 20:47:08 -07:00
Benjamin Shafii
371adb5cbe ci: route all Linux release builds through larger runner
Use the configured larger-runner label for both Linux release matrix targets so x86_64 and aarch64 builds share the same faster GitHub-hosted runner path and logging.
2026-03-14 20:10:23 -07:00
Benjamin Shafii
5831626ca3 ci: route Linux x64 builds through configurable larger runner
Allow release and desktop workflows to target the new GitHub-hosted larger runner without hard-coding it, while keeping ubuntu-22.04 as a fallback and logging the effective runner selection.
2026-03-14 17:38:22 -07:00
Benjamin Shafii
90f1310aa9 ci: pin default OpenCode version to 1.2.20 2026-03-06 11:11:16 -08:00
Jakub Husák
f2bcf05e0e Linux arm64 build and release (#582)
* Initial plan

* Add ARM64 build support to workflows and AUR packaging

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Fix: Add noextract field update to AUR script

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Add comment explaining temporary SKIP checksum for ARM64

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Make cross-compilation tools conditional on runner architecture

Cross-compilation tools (gcc-aarch64-linux-gnu) are now only installed when actually cross-compiling (x86_64 → ARM64). Native ARM64 runners will use native compilation without these tools.

This enables flexible deployment:
- Default: Cross-compilation on ubuntu-22.04 (free tier)
- Optional: Native compilation on ubuntu-*-arm64 or self-hosted ARM64 runners

The workflow auto-detects via runner.arch context.

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Remove cross-compilation tools installation for native ARM64 runners

Since we're running on native ARM64 runners, cross-compilation tools are not needed. The native toolchain will be used directly for ARM64 builds.

This simplifies the workflow and improves build performance by removing unnecessary package installation.

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Refactor: Extract SHA256 checksum calculation to reusable function

Eliminates code duplication by creating a single compute_sha256() function
that is called twice, instead of duplicating the Python code block.

Benefits:
- Reduced script from 132 to 123 lines (9 lines saved)
- Single source of truth for checksum logic
- Easier to maintain and modify in the future
- Follows DRY (Don't Repeat Yourself) principle

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Fix: Update comment to use consistent terminology

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Replace Python SHA256 hashing with native sha256sum command

Simplifies the compute_sha256() function by replacing the Python implementation
with native bash sha256sum command, reducing complexity and improving performance.

Changes:
- Replaced 13-line Python function with 1-line sha256sum call
- Reduced script from 123 to 113 lines (10 lines saved)
- Eliminated Python interpreter startup overhead for hashing
- Maintains full compatibility with existing checksums

Benefits:
- Simpler, more idiomatic bash implementation
- Faster execution (no Python startup for hashing)
- Easier to read and maintain

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Remove compute_sha256 function and inline sha256sum usage

Eliminates the compute_sha256() wrapper function and directly inlines
sha256sum calls, making the code simpler and more transparent.

Changes:
- Removed function definition (lines 46-49)
- Inlined sha256sum calls directly where needed
- Reduced script from 113 to 108 lines (5 lines saved)
- Updated comment to reflect direct usage

Benefits:
- Simpler code with fewer abstractions
- More direct and transparent implementation
- Easier to understand at a glance

Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>

* Remove useless comments from update-aur.sh

* foo

* bar

* Bring back ARM64 cross-compilation tools

* Add Linux-ARM64-build-and-release branch to workflow

* wip

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: koubas <1354930+koubas@users.noreply.github.com>
Co-authored-by: Benjamin Shafii <benjamin.shafii@gmail.com>
2026-02-16 20:33:52 -08:00
ben
695e433781 chore(ci): support forked opencode sidecar (#575)
- Allow OpenWork workflows to pull the OpenCode CLI sidecar from a configurable GitHub repo + version (OPENCODE_GITHUB_REPO/OPENCODE_VERSION).\n- Make Settings > Debug show OpenCode binary source + version (e.g. bundled · 1.1.60-openwork.1).
2026-02-15 15:26:19 -08:00
Benjamin Shafii
63df079d1c fix(ci): resolve latest OpenCode with token
Use GITHUB_TOKEN for GitHub API calls and fall back to the web releases/latest redirect when the API returns 403, so CI can still default to latest.
2026-02-06 12:25:51 -08:00
Benjamin Shafii
609ca9c5e2 chore(build): default OpenCode to latest
Stop pinning OpenCode in package metadata and resolve the latest release during sidecar bundling/runtime, while still allowing OPENCODE_VERSION to pin for reproducible builds.
2026-02-06 10:27:40 -08:00
Benjamin Shafii
0a4c6dd4b1 ci: unify Release App with openwrk publishing 2026-02-05 00:01:00 -08:00
Benjamin Shafii
58ec9c03d8 ci: prevent prerelease workflow failures from pnpm/tauri/bun mismatches 2026-02-04 22:17:45 -08:00
Benjamin Shafii
a835ec8b05 ci: install OpenTUI x64 core for macOS builds 2026-02-04 21:45:38 -08:00
Benjamin Shafii
644b6cbfd0 fix(release): use uploadUpdaterJson + bump 0.8.2 2026-01-30 12:40:24 -08:00
Benjamin Shafii
43797ba2b7 fix(release): gate notarization + bump 0.8.1 2026-01-30 12:34:46 -08:00
Benjamin Shafii
c3e338a052 fix(owpenbot): align bun builds and sidecar startup 2026-01-28 21:20:26 -08:00
Benjamin Shafii
660f1b4086 fix(ci): add owpenbot sidecar stub to build.rs and enable Bun on all platforms
- Add ensure_owpenbot_sidecar() to build.rs to create debug stubs when binary missing
- Remove 'if: matrix.os_type == windows' from Bun setup in CI workflows
- This fixes PreRelease builds failing because prepare:sidecar needs bun to compile owpenbot
2026-01-28 19:51:27 -08:00
ben
339edfe8d1 chore: bump opencode fallback to 1.1.36 (#295) 2026-01-27 22:59:57 -08:00
ben
9fb0186c9c fix(ci): unblock Windows builds by compiling OpenWork server sidecar (#287) 2026-01-27 17:06:57 -08:00
ben
471ff35908 feat: window sidecar (#205)
* feat: enable windows sidecar bundling

* fix: run sidecar prep from repo root

* fix: run sidecar prep via workspace filter
2026-01-22 22:56:44 -08:00
Benjamin Shafii
32e1f84b0f chore: move OpenWork into pnpm workspace 2026-01-20 21:12:18 -08:00
AdianKozlica
befd10b977 feat: add rpm support 2026-01-20 13:09:50 +01:00
Benjamin Shafii
7a44b65fd5 fix: skip linux AppImage bundling 2026-01-20 00:41:03 -08:00
Benjamin Shafii
115c66addf fix: bundle OpenCode sidecar in release builds 2026-01-19 22:36:05 -08:00
Benjamin Shafii
ba2d29c29f fix: pass prerelease tag to build jobs 2026-01-19 15:55:13 -08:00
ben
17e8f2316e ci: run on dev and add prerelease (#90) 2026-01-18 16:10:45 -08:00