cminpack icon indicating copy to clipboard operation
cminpack copied to clipboard

Initial Github Actions covering latest Ubuntu and Visual Studio builds through CMake

Open luau-project opened this issue 1 year ago • 0 comments

What?

I have added github actions to build, test, and install cminpack through CMake on the latest Ubuntu and Visual Studio github images.

Why?

These additions are valuable to people learning and experimenting cminpack, and also for people working on cminpack forks to inspect and get a quick test response on their pushes.

How?

  • Added a file .github/workflows/ubuntu-cminpack-install.yaml to drive build + test + install through CMake on latest Ubuntu;
  • Added a file .github/workflows/windows-visual-studio-cminpack-install.yaml to build + test + install through CMake on latest Windows, employing the latest Visual Studio.

Note 1: Both workflows build + test + install on multiple conditions (shared libraries on/off, build types release/debug/relwithdebinfo/minsizerel) and Visual Studio also builds and tests on multiple architectures (x64 / Win32). However, since the reference tests only seem to work well with cminpack double precision version, it is the only precision used in the workflows.

Testing?

  1. The github action .github/workflows/ubuntu-cminpack-install.yaml works out of the box on latest Ubuntu
  2. The github action .github/workflows/windows-visual-studio-cminpack-install.yaml works out of the box on latest Windows + latest Visual Studio

Note 2: On a local virtual machine, I am able to build, test and install cminpack on Windows 11 through CMake with GCC + GNU Make provided by MSYS2. However, it is failing on a sketch workflow on github actions which I am still diagnosing the issue. It might come in the future if I manage to fix it.

luau-project avatar Feb 18 '24 00:02 luau-project