How to package and deploy the output of a bazel build action

preview_player
Показать описание
0:00 Intro
2:55 Setup and Compile python
8:11 Packaging to a zip file
12:36 Find the artifact path
14:57 Writing a deployment script

#bazel

In this tutorial I talk about how you can access the artifacts that are built using the bazel build system.

Bazel is really good at a taking inputs, doing some action on them and the returning the outputs for other build steps. But how do you take those outputs and copy them to a location of on your own computer. Or copy them into the actual workspace

This video sets up a step-by-step guide on how to compile a simple binary, with the python rules. zip them using package rules and then uses a simple script to copy the result to into the workspace

Here are the links to the pages that are mentioned in the project

Рекомендации по теме
Комментарии
Автор

FYI, audio is stereo, but right channel is silent.

plobsing
Автор

Hi Gisli, Do you perhaps know how to access the bazel's metadata that keeps track of the changes and which tests to run? Does Bazel make the logic available to end users?

elisiuslegodi
Автор

Hi Gisli.. Thank you for videos on Bazel. I have just started working on bazel and am stuck with an issue. I wanted a rule to invoke a py_binary and pass 2 arguments to python program through that rule. Also my python program doesn't output any file it just connectes to microcontroller board and deploys the executable(.hex file) to it. Later I want to use bazel run command that uses the .hex file genearted from cc_binary as input to the genrule that deploys .hex to microcontroller board using the custom rule created that invoke py_binary. If you could guide me on this it would really be of great help.

umapatil
visit shbcf.ru