src: add build Github Action
Fix #31017 (closed)
Currently not able to reuse common steps. See https://github.community/t5/GitHub-Actions/reusing-sharing-inheriting-steps-between-jobs-declarations/m-p/37849#M3100.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines