<div dir="ltr">Just an innocent question... <div>How come GCC is not one of the tested compilers on Windows and it's the only tested compiler for Linux? <div>Is GCC for Windows not in par with MSVC?</div></div><div><br></div><div>Idan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 4 Jun 2020 at 01:41, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div style="font-family:monospace;font-size:9pt;font-weight:400;font-style:normal">
<p style="margin:0px;text-indent:0px">On lundi 20 avril 2020 20:16:41 CEST Howard Butler wrote:</p>
<p style="margin:0px;text-indent:0px">> > On Apr 16, 2020, at 7:46 PM, Mateusz Loskot <<a href="mailto:mateusz@loskot.net" target="_blank">mateusz@loskot.net</a>> wrote:</p>
<p style="margin:0px;text-indent:0px">> > </p>
<p style="margin:0px;text-indent:0px">> > On Fri, 17 Apr 2020 at 01:45, Mike Taves <<a href="mailto:mwtoews@gmail.com" target="_blank">mwtoews@gmail.com</a>> wrote:</p>
<p style="margin:0px;text-indent:0px">> >> It seems that many projects have shifted from AppVeyor to AZP for</p>
<p style="margin:0px;text-indent:0px">> >> performance benefits.</p>
<p style="margin:0px;text-indent:0px">> > </p>
<p style="margin:0px;text-indent:0px">> > Or GitHub Actions, which is an incarnation of AzP.</p>
<p style="margin:0px;text-indent:0px">> </p>
<p style="margin:0px;text-indent:0px">> Having done both GitHub Actions and AzP, I think Actions has more convenient</p>
<p style="margin:0px;text-indent:0px">> expressiveness of job flow, a big win of integration with GitHub's API, and</p>
<p style="margin:0px;text-indent:0px">> large directory of user-contributed actions.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/OSGeo/gdal/pull/2648" target="_blank">https://github.com/OSGeo/gdal/pull/2648</a> has now a migration of the VS2019 build to GitHub actions, which will improve response time by cutting half of the load on AppVeyor</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">For anyone attempting similar migration, here are a few random points on which I stumbled upon:</p>
<p style="margin:0px;text-indent:0px">- git on GitHub actions has the default behaviour of git on Windows, that is it must have core.autocrlf=true or whatever makes git turn LF into CRLF on some files. Fix was to set core.autocrlf=false</p>
<p style="margin:0px;text-indent:0px">- powershell on GitHub actions exits as soon as a command in a script fails. Which is reasonable, but for some reason our GDAL appveyor powershell sequences don't like that, especially when used with the black magic exec() function we have in appveyor.yml that seems to be an emulation of the default Github action mode. Fix was to set $ErrorActionPreference = 'continue'</p>
<p style="margin:0px;text-indent:0px">- anectodical: "Install-PackageProvider NuGet -Force", whatever that does, failed on github actions, but that turned out to be unnecessary.</p>
<p style="margin:0px;text-indent:0px">(I now know at least I actively hate powershell)</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">So on AppVeyor remains the VS 2015 build, since github actions doesn't offer this compiler. At some point we will probably be able to remove VS 2015 builds. The main reason for keeping it is that OSGeo4W still uses VS 2015 to build GDAL, but this is going to be updated to 2019 soon according to Jürgen.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">I've also migrated recently the Mac Travis-CI jobs, and all code quality checks into github actions. Was easier.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">I will probably defer on migrating more things, that is the remaining Linux Travis-CI jobs. From a discussion with @pyusr on IRC, one solution to consider, and that would make us mostly CI host independent, would be to use Docker builds instead of relying on the VM provided by the CI host. I haven't considered that more, but on the paper it seems interesting. He was pointing to</p>
<p style="margin:0px;text-indent:0px"><a href="https://github.com/tzickel/chunkedbuffer/blob/master/.github/workflows/test.yml" target="_blank">https://github.com/tzickel/chunkedbuffer/blob/master/.github/workflows/test.yml</a> +  <a href="https://github.com/tzickel/chunkedbuffer/blob/master/Dockerfile.test" target="_blank">https://github.com/tzickel/chunkedbuffer/blob/master/Dockerfile.test</a> as an example . One potential issue is that we have some Linux builds that start Docker containers for databases, so I'm not sure how that would interact with the build & tests being done in docker build. Would probably work by doing them as separate preliminary steps in a job.</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">Even</p>
<p style="margin:0px;text-indent:0px"> </p>
<p style="margin:0px;text-indent:0px">-- </p>
<p style="margin:0px;text-indent:0px">Spatialys - Geospatial professional services</p>
<p style="margin:0px;text-indent:0px"><a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a></p></div>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>