Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create workflow to make x64 and arm64 linux builds #318

Merged
merged 18 commits into from
Dec 10, 2024
Merged

Conversation

micahflee
Copy link
Contributor

@micahflee micahflee commented Dec 4, 2024

I've hit a problem. While this apparently successfully build x64 and arm64 releases, the arm64 ones don't actually run. It crashes with the error:

16:36:08.934 › Failed to run migrations: Error: /tmp/.org.chromium.Chromium.QjEriW: cannot open shared object file: No such file or directory
    at process.func [as dlopen] (node:electron/js2c/node_init:2:2559)
    at Module._extensions..node (node:internal/modules/cjs/loader:1602:18)
    at Object.func [as .node] (node:electron/js2c/node_init:2:2786)
    at Module.load (node:internal/modules/cjs/loader:1295:32)
    at Module._load (node:internal/modules/cjs/loader:1111:12)
    at c._load (node:electron/js2c/node_init:2:16955)
    at Module.require (node:internal/modules/cjs/loader:1318:19)
    at require (node:internal/modules/helpers:179:18)
    at bindings (/usr/lib/cyd/resources/app.asar/node_modules/bindings/bindings.js:112:48)
    at new Database (/usr/lib/cyd/resources/app.asar/node_modules/better-sqlite3/lib/database.js:48:64)
    at B (/usr/lib/cyd/resources/app.asar/.vite/build/main.js:7:24222)
    at U2 (/usr/lib/cyd/resources/app.asar/.vite/build/main.js:11:248)
    at App.Md (/usr/lib/cyd/resources/app.asar/.vite/build/main.js:201:14147)
    at App.emit (node:events:531:35)

I believe this is caused by the arm64 github actions runner not actually using arm64 but instead using x86_64 and emulation. When I build on actual arm64 hardware, the final binaries work.

@micahflee micahflee marked this pull request as draft December 5, 2024 00:34
@micahflee micahflee marked this pull request as ready for review December 5, 2024 00:57
@micahflee
Copy link
Contributor Author

I figured out how to set up a custom github-hosted arm64 runner!

And version bump to 1.0.16-dev
@micahflee micahflee self-assigned this Dec 10, 2024
@micahflee micahflee merged commit 514146b into main Dec 10, 2024
1 check passed
@micahflee micahflee deleted the 317-linux-releases branch December 10, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant