ad7297199d
* Build role requires build target to be specified via a variable * Ensure role checks for a specific version of Bazel and downloads and installs if missing; defaults to v3.1.0 and downloading from bazelbuild Github, but these can be overrriden using variables * Also installs dependencies for Bazel; only supports Ubuntu/Debian at present, but includes scope to extend for other platforms * Includes test playbook and job Change-Id: I83f198aaf20c2b3664bea6fc05edd3b4fca13a4f
21 lines
396 B
YAML
21 lines
396 B
YAML
- name: Install Bazel dependencies
|
|
become: true
|
|
package:
|
|
name:
|
|
- pkg-config
|
|
- zip
|
|
- g++
|
|
- zlib1g-dev
|
|
- unzip
|
|
- python3
|
|
state: present
|
|
|
|
- name: Install bazel on Debian
|
|
become: true
|
|
shell: |
|
|
set -ex
|
|
{{ bazel_installer_tempdir.path }}/bazel-{{ bazel_version }}-installer-linux-x86_64.sh
|
|
bazel version
|
|
args:
|
|
executable: /bin/bash
|