.github: Add initial linux CI workflow (#55176)
Summary:
This is a commandeer of https://github.com/pytorch/pytorch/issues/54091.
TODO:
- [x] understand why the build is [failing](https://github.com/pytorch/pytorch/pull/55176/checks?check_run_id=2254742265) here when it was [succeeding](https://github.com/pytorch/pytorch/pull/54091/checks?check_run_id=2177844748) on https://github.com/pytorch/pytorch/issues/54091
- [x] fix the build failure
- [x] fix the test failure(s)
- [x] add CI check to generate YAML workflows from templates, similar to https://github.com/pytorch/pytorch/issues/55171
- [ ] uncomment the rest of the matrix
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55176
Reviewed By: walterddr
Differential Revision: D27803529
Pulled By: seemethere
fbshipit-source-id: 52a65ec8f7a83b929fed47f0bbdca544210ec9c2