pytorch/.github/scripts
Ruslan Semenov 5da507b57b Add bazel actions workflow (#61039)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61039

- Added a new template for bazel GH Actions workflow
- Simplified the workflow based on malfet's suggestion by combining build and test jobs into one as we only run a small subset of tests for bazel
- Tested the run to make sure it succeeds
- Build step takes 4 minutes, test step takes 7 minutes

The downside of this approach is that I duplicated some of the jobs in a new template file.  Alternative solution would be to use something like this https://jinja.palletsprojects.com/en/3.0.x/templates/#template-inheritance, however, that is better to be done in a separate PR as linux and windows workflows would need to be changed. Another solution is to use a bunch of if else statements in a linux workflow template to accommodate bazel build as part of it, but this seems not as clean as template inheritance with jinja.

Here is a link to the latest bazel run with this change https://github.com/pytorch/pytorch/actions/runs/1004656584

Test Plan: Imported from OSS

Reviewed By: malfet

Differential Revision: D29562260

Pulled By: rsemenov

fbshipit-source-id: a7d7d3a0b8092f52929fb109820bfad4574f5602
2021-07-06 12:18:43 -07:00
..
build_publish_nightly_docker.sh Use the conda channel defined in docker.Makefile to install cudatoolkit (#53316) 2021-03-12 11:18:05 -08:00
ensure_actions_will_cancel.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
generate_binary_build_matrix.py ci: Remove CUDA 10.1 builds (#56056) 2021-04-14 14:24:56 -07:00
generate_ci_workflows.py Add bazel actions workflow (#61039) 2021-07-06 12:18:43 -07:00
generate_pytorch_test_matrix.py Enable multigpu_test in GHA (#60221) 2021-06-30 08:52:38 -07:00
generate_pytorch_version.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00
install_nvidia_utils_linux.sh .github: Add initial Linux CI for CUDA (#56494) 2021-04-23 18:09:08 -07:00
lint_native_functions.py Disable warn_unused_ignores again (#60480) 2021-06-22 12:42:37 -07:00
parse_ref.py Use tools/print_test_stats.py in GHA (#57647) 2021-05-10 12:29:40 -07:00
report_git_status.sh [lint] Move shellcheck to its own step (#58623) 2021-05-21 18:23:40 -07:00
run_torchbench.py Strictly type everything in .github and tools (#59117) 2021-06-07 14:49:36 -07:00