I am trying to build python wheels for multiple platforms using cibuildwheel on Github Actions, and I have succeeded with the MacOS and Linux images only after installing/upgrading automake, bison, flex, and swig. After that, to compile the C++ library and build the wheel it is essentially just autoreconf/configure/make/make install/python setup.py bdist_wheel. On the Windows image, I have tried many different things, but I am just too unfamiliar with Windows to make any progress. Chocolatey has winflexbison3 and swig, but does not appear to have autotools available. The Windows image README mentions pacman as a package manager, but I haven't successfully called it because it's not on PATH.
Is it possible to use a POSIX shell script like bash (not cmd or PowerShell) to do the whole build inside of Github's Windows image? If so, how can I install automake/autoconf/bison/flex/swig and then autoreconf/configure/make/make install? Specifically, how do I write the script and how do I call it in the Github Actions yml file?