Open stoffu opened 1 year ago
Is the failed CI okay. The windows ibdtest looks like maybe it took too long but the ubuntu unit tests just failed?
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?
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.
M1 binaries built using Codemagic can be downloaded from
e1ab9e1db6c4484b056525c73a1006bb15ade6b7020d42740217a490255d838a
The build log is not publicly accessible, so I made a copy here