-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
windows: Publish executables from Appveyor builds available (v2) #6055
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
base: master
Are you sure you want to change the base?
Conversation
2c936f9
to
965277a
Compare
@stinos this looks good to me. Can you please rebase on latest master? Then it should be good to merge. |
Sure. Should be pretty useful. Will need a bunch of changes to match latest appveyor.yml. However my first thought when seeing this now: there should be a separate script for the build. I need to make such script anyway so I can test locally, so seems silly to then copy-paste all of that back into Appveyor. Ok to add a ports/windows/build.ps1 ? |
yep |
Use PREFIX/BINDIR per GNU Coding Standards' Makefile Conventions.
Use PREFIX/BINDIR per GNU Coding Standards' Makefile Conventions.
This doesn't change what gets built, but in comparison with using multiple jobs has some advantages: - the script can be used locally as well - less complex Appveyor configuration - using one job leads to faster CI builds because firing up jobs costs time and involves a git clone for each - using one job leads to all build output (including future artifacts, see upcoming commit) being reachable via one URL
This makes the micropython and mpy-cross executables, both from msvc and mingw ports, avaiable for download: - ci.appveyor.com/project/<user>/micropython/build/artifacts for the last build - ci.appveyor.com/project/<user>/micropython/branch/<branch>/artifacts for the last build of a apecific branch
965277a
to
85d1f36
Compare
Now up for review; a bit more involved than earlier, mainly because we now have variants and because I wanted to remove the principle that getting the correct executables published depended on the build order, that's just too brittle. Some additional info:
|
Sorry this got lost. And now with the move from AppVeyor to GitHub Actions it would need to be redone... that's not a priority and I'll leave this PR open as a reminder for whoever wants to do it. |
No worries; if this is converted to Github CI what should the principle be? Use whatever standard functionality the CI provides? Is there an example for other ports? |
Alternative version for #6049.
This would make downloads of latest build available at
https://ci.appveyor.com/project/dpgeorge/micropython/build/artifacts
(see https://ci.appveyor.com/project/stinos/micropython/build/artifacts for example) or latest master athttps://ci.appveyor.com/project/dpgeorge/micropython/branch/master/artifacts
or for direct download (also curl)https://ci.appveyor.com/api/projects/dpgeorge/micropython/artifacts/mpy-cross/mpy-cross.exe
etc.I like this one better than #6049, not only because the downloads are now easily accessible but also because the complete CI build is one script which can be used locally.