blob: 04c22e64e3825feb7562891ce3871b4940811fc1 [file] [log] [blame]
Miguel Young de la Sota94383912019-12-05 14:34:04 -06001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4
5# Azure template for installing dependencies from various package managers,
6# necessary for building, testing, and packaging OpenTitan.
7#
Philipp Wagner4fbe98f2020-02-25 12:54:20 +00008# This template can be included from pipelines in other repositories.
9# In this case, set the the REPO_TOP parameter to point to the root of the
10# checked out opentitan repository.
11#
Miguel Young de la Sota94383912019-12-05 14:34:04 -060012# This template executes:
Philipp Wagner161bb0c2020-03-30 15:54:33 +010013# - apt-get (*) install for all packages listed in apt-requirements.txt
Miguel Young de la Sota94383912019-12-05 14:34:04 -060014# - pip install for all packages listed in python-requirements.txt
Philipp Wagner161bb0c2020-03-30 15:54:33 +010015#
16# * As an optimization, apt-fast is used instead of apt-get if it is available.
Miguel Young de la Sota94383912019-12-05 14:34:04 -060017
Philipp Wagner4fbe98f2020-02-25 12:54:20 +000018parameters:
19- name: REPO_TOP
20 type: string
21 default: .
22
Miguel Young de la Sota94383912019-12-05 14:34:04 -060023steps:
24 - bash: |
25 set -e
Rupert Swarbrickd0ca7e92021-03-15 13:00:32 +000026 cd ${{ parameters.REPO_TOP }}
27 ci/install-package-dependencies.sh \
28 --verilator-version $(VERILATOR_VERSION) \
Alphan Ulusoye2205892021-05-13 09:36:17 -040029 --verible-version $(VERIBLE_VERSION) \
30 --rust-version $(RUST_VERSION)
Miles Daif14a76a2022-06-08 12:31:03 -040031 retryCountOnTaskFailure: 3
Miguel Young de la Sota94383912019-12-05 14:34:04 -060032 displayName: 'Install package dependencies'