Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: support building Coder Desktop.dylib#15512

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethanndickson merged 2 commits intomainfromethan/build-dylib
Nov 20, 2024

Conversation

ethanndickson
Copy link
Member

@ethanndicksonethanndickson commentedNov 14, 2024
edited
Loading

Relates to#14734.

  • Addsmake/coder-dylib to build the Coder Desktop.dylib for bothamd64 andarm64.

  • Adds abuild-dylib CI job that builds the dylibs on a macOS runner, signs them, uploads them and the header file as a build artifact, and then downloads them and inserts them into the fat binary build during the regularbuild CI job (which uses an ubuntu runner).

  • Makes the dylibs and the accompanying header file available for download from/bin on a Coder deployment.

  • Adds abuild-dylib torelease.yaml.release now downloads and embeds these dylibs in it's builds.

  • Minor fixes to get release dry-runs working again.

$ codesign -dvv coder-vpn-darwin-amd64.dylib[...]Identifier=com.coder.vpnAuthority=Developer ID Application: Coder Technologies Inc (4399GN35BJ)

/bin:

coder-darwin-amd64coder-darwin-arm64coder-vpn-darwin-amd64.dylibcoder-vpn-darwin-arm64.dylibcoder-vpn-darwin-dylib.hcoder-linux-amd64coder-linux-arm64coder-linux-armv7coder-windows-amd64.execoder-windows-arm64.exe

Latest passingci run:https://github.com/coder/coder/actions/runs/11885370889/
build-dylib artifact:https://github.com/coder/coder/actions/runs/11885370889/artifacts/2199477618
Fullbuild artifact:https://github.com/coder/coder/actions/runs/11885370889/artifacts/2199489548

Latest passingrelease dry-run:https://github.com/coder/coder/actions/runs/11885373782
release build artifact:https://github.com/coder/coder/actions/runs/11885373782/artifacts/2199494843

The C interface for the dylib is currently just:
int OpenTunnel(cReadFD int, cWriteFD int)

@ethanndicksonGraphite App
Copy link
MemberAuthor

ethanndickson commentedNov 14, 2024
edited
Loading

This stack of pull requests is managed byGraphite. Learn more aboutstacking.

@deansheather
Copy link
Member

Can we call the artifactscodervpn-darwin-arch.ext instead?

@ethanndickson
Copy link
MemberAuthor

ethanndickson commentedNov 15, 2024
edited
Loading

Yeah the naming is kinda tricky, how doescoder-{desktop|vpn}-darwin-arch.ext sound? We have a bunch of code for embedding the binaries (hashing, tarring) that relies on the files starting withcoder-, and I don't really want to touch that needlessly.

Also, thedarwin part is kinda implicit, given that we're only exporting a dylib. I guess if we ever added a linux .so, it might use a different header file?

@deansheather
Copy link
Member

We have a bunch of code for embedding the binaries (hashing, tarring) that relies on the files starting withcoder-

Yeah OK that sounds good to me then.

Also, the darwin part is kinda implicit, given that we're only exporting a dylib

I'd rather keep the standard anyways. The windows binaries can easily be told apart too because of the.exe but we don't dropwindows from the name.

Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

One nit inline. LGTM

@ethanndicksonethanndickson merged commit32fc844 intomainNov 20, 2024
31 checks passed
@ethanndicksonethanndickson deleted the ethan/build-dylib branchNovember 20, 2024 03:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees

@ethanndicksonethanndickson

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@ethanndickson@deansheather@spikecurtis

[8]ページ先頭

©2009-2025 Movatter.jp