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

Add AppVeyor file for CI #19

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Add AppVeyor file for CI #19

merged 1 commit into from
Apr 29, 2019

Conversation

mrexodia
Copy link
Contributor

This builds with mingw-w64 on Windows and whatever make takes as the default on Ubuntu. Additionally artifacts are created so if you add your project to AppVeyor you can provide an automatic download link for the latest commit hash.

See https://www.appveyor.com/docs/

@Alcaro
Copy link
Owner

Alcaro commented Apr 28, 2019

Adding a CI to Flips certainly is a valid proposal.

But while this is a good start, it needs some more work.

To start with, that 'version: 1.40.{build}' key looks scary. The more places the version number exists, the higher risk I forget updating one of them. Can it be autogenerated? If no, how much would break if it's deleted, or replaced with appv.{build}?

Second, and more important, the official builds use a quite aggressive set of build options, driven by make.sh (or, for the Windows build, make-maintainer.sh). If the CI should provide binaries, it must use the full set of compile flags, including PGO; providing semi-official binaries with suboptimal optimizations would just confuse people. This is best done by ignoring the Windows images and installing Wine in the CI, and editing make-maintainer.sh a little. (Alternatively, if the CI should not provide binaries but only ensure it compiles cleanly, that's fine too.)

I'll try to find some time to implement the above in the upcoming week, if you don't do it first.

@mrexodia
Copy link
Contributor Author

mrexodia commented Apr 28, 2019 via email

@mrexodia mrexodia force-pushed the appveyor branch 6 times, most recently from 6f4a4a1 to 1d4e761 Compare April 28, 2019 23:34
@mrexodia
Copy link
Contributor Author

mrexodia commented Apr 28, 2019

I synced with the latest master and removed all artifacts. I tried to get the other scripts to work for a while, but that Ubuntu doesn't seem to want to install Wine so I gave up 😄

Also cleaned up the version.

@Alcaro
Copy link
Owner

Alcaro commented Apr 29, 2019

Yeah, good enough, at least for now. I'll see if I can get it to build properly later.

If I do, building under mingw twice is a waste of time. But I could repurpose the VS box to build under MSVC instead, so I don't accidentally use some GCC extension.

Any CI is indeed better than no CI. It's debatable how much, but it is an improvement.

@Alcaro Alcaro merged commit 584bb04 into Alcaro:master Apr 29, 2019
@Alcaro
Copy link
Owner

Alcaro commented Apr 29, 2019

As for the optimizations, Flips has been downloaded at least 200000 times. Small improvement (PGO makes it ~2% faster) times 200000 users is a quite considerable amount.

@mrexodia mrexodia deleted the appveyor branch April 29, 2019 14:41
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