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

Build M1 binaries using Codemagic #277

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stoffu
Copy link

@stoffu stoffu commented Dec 20, 2022

No description provided.

@stoffu
Copy link
Author

stoffu commented Dec 20, 2022

M1 binaries built using Codemagic can be downloaded from

The build log is not publicly accessible, so I made a copy here

@stoffu stoffu force-pushed the aeon-codemagic branch 2 times, most recently from 120d602 to e134eb9 Compare December 20, 2022 05:46
@iamsmooth
Copy link

Is the failed CI okay. The windows ibdtest looks like maybe it took too long but the ubuntu unit tests just failed?

@iamsmooth
Copy link

Also, I guess the M1 binaries won't be automatically uploaded like the others. Is the idea to just manually add that binary to a release?

@stoffu
Copy link
Author

stoffu commented Jan 17, 2023

For the unit tests, this PR #278 removes the faulty test which I believe to be wrong/moot.

For the release uploads, the official account @aeonix needs to create an account at https://codemagic.io/, and follow steps described in https://docs.codemagic.io/yaml-publishing/github-releases/ for generating a GitHub access token.

I found that the token has to be of type "classic" rather than "fine-grained" and should grant access to all items under the "repo" category.

Note that the environment variable name has to be GH_TOKEN instead of GITHUB_TOKEN. Also, its group name has to be github.

I confirmed that this release upload mechanism works (see https://github.com/stoffu/monero/releases/tag/cm-test-2), but I couldn't figure out how to automatically trigger builds on Codemagic when a release tag is created. The above test was done by manually triggering the build.

I figured out that automatic build triggering is possible via webhooks, by following instructions here https://docs.codemagic.io/yaml-running-builds/webhooks/

I finally managed to trigger the build with tag creation and have the artifact uploaded, see result here https://github.com/stoffu/monero/releases/tag/cm-test-7.

@stoffu stoffu force-pushed the aeon-codemagic branch 2 times, most recently from 9685177 to 1cb4b41 Compare January 17, 2023 13:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants