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

Enable OSX compilation in CI #249

Open
calderonth opened this issue May 14, 2024 · 7 comments
Open

Enable OSX compilation in CI #249

calderonth opened this issue May 14, 2024 · 7 comments

Comments

@calderonth
Copy link

The Github Workflow does not run a cross compile for the darwin target.
If darwin cross compilation is to be reliable, the CI should include it so we know that projects can be compiled reliably.

There are a number of open issues relating to Linux -> Darwin cross compile open and I think it would provide valuable signals if the CI can produce valid artefacts.

## Not shared darwin image is available at the moment
# - os: darwin
# args: -app-id calc.sha${{ github.sha }}
# host: macos-latest

@Bluebugs
Copy link
Contributor

In progress #243 , but it is to be noted this PR is only testing darwin on darwin which is limited. #245 is open to allow darwin on darwin.

@calderonth
Copy link
Author

calderonth commented May 15, 2024

Thanks, I've commented in the other bug report.
I am yet to successfully build myself from Linux to OSX, the documentation is outdated and don't seem to work properly for Linux to Darwin as far as I can tell.

@Bluebugs
Copy link
Contributor

My understanding is that the newest sdk does not work with fyne. As I did my setup years ago, I am not going through the oops of verifying latest sdk from Apple, especially because I can't automate its download and I don't have an apple id. I wish apple was doing better there.

An alternate solution, that I wish I had time to investigate is what tinygo does. There is an open issue for it, but basically we are just compiling not running macos code, we could provide a shim and empty library.

@andydotxyz
Copy link
Member

the documentation is outdated

Can you be more specific? I am not aware of any docs that don't work - but if you can point to where they are wrong we will update.

@calderonth
Copy link
Author

calderonth commented May 17, 2024

Well I have been following this documentation: https://github.com/fyne-io/fyne-cross/?tab=readme-ov-file#extract-the-macos-sdk-for-osxdarwinapple-cross-compiling.

With it, I am still unable to cross compile from Linux to Darwin a basic Fyne app. I am encountering the same issues mentioned in #202 and #187 and have yet to produce a valid binary.

PS: I have tried many variants of the CLI tools for Xcode without success.

@calderonth
Copy link
Author

I don't know if this is linked to the zig version change in the base Docker image (https://github.com/fyne-io/fyne-cross-images/blob/main/base/Dockerfile#L6) whilst the darwin image is stuck to the older one: https://github.com/fyne-io/fyne-cross-images/blob/main/darwin/Dockerfile#L9 but there's clearly something not right.

@andydotxyz
Copy link
Member

Do you have any errors you can share? it is not clear from the info about which step is failing.
Sorry this went un-commented for a while, we have been busy with the next Fyne release.

Thanks for linking to the doc you are using - you mention it is outdated, but not which step was not working for you.
More info will help us understand where things may not be working for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants