DaemonEngine / crunch

Advanced DXTc texture compression and transcoding library and tool, upgraded with Unity improvements, added features, extended system and hardware support, deeply tested.
https://github.com/DaemonEngine/crunch
Other
16 stars 6 forks source link

CI for Linux, MinGW and macOS #47

Closed illwieckz closed 4 months ago

illwieckz commented 4 months ago

CI for Linux, MinGW and macOS

illwieckz commented 4 months ago

The PR includes #46 to fix the macOS build:

illwieckz commented 4 months ago

The codeql/appveyor changes were merged:

The snprintf fixes were merged:

The MinGW fixes are now living in a separate PR:

What is now remaining from this PR is the Azure Pipeline configuration. I can't test it until Azure Pipeline is enabled for this repository.

illwieckz commented 4 months ago

I added some PNG, BMP and TGA test images from:

When running the Azure CI on a native platform (no cross-compilation), it runs crunch with them as input.

Currently, the test doesn't verify the output of crunch, but it already checks that the input format is not refused, and would catch this kind of error:

It also makes us able to run the test outside the CI and it makes me discover the raw TGA input format is not fully supported (horizontal orientation bit is ignored), I guess the error is in STB and then I would have to report them the error.

illwieckz commented 4 months ago

So, now Linux amd64, macOS amd64 and Windows/MSVC run the tests. The tests are only about running crunch on a set of images and only to check that crunch doesn't error out. We may do some checksums later but that's good enough for now and it's enough to validate the infrastructure is there.

illwieckz commented 4 months ago

For some unknown reason, when running in azure pipeline, test/test.py own print call is not displayed in azure pipeline output, same problem with either stdout or stderr output, I have no idea why. That's not a big problem and this may be investigated separately.