Miguel Young de la Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 1 | # 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 Wagner | 4fbe98f | 2020-02-25 12:54:20 +0000 | [diff] [blame] | 8 | # 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 Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 12 | # This template executes: |
Philipp Wagner | 161bb0c | 2020-03-30 15:54:33 +0100 | [diff] [blame] | 13 | # - apt-get (*) install for all packages listed in apt-requirements.txt |
Miguel Young de la Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 14 | # - pip install for all packages listed in python-requirements.txt |
Philipp Wagner | 161bb0c | 2020-03-30 15:54:33 +0100 | [diff] [blame] | 15 | # |
| 16 | # * As an optimization, apt-fast is used instead of apt-get if it is available. |
Miguel Young de la Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 17 | |
Philipp Wagner | 4fbe98f | 2020-02-25 12:54:20 +0000 | [diff] [blame] | 18 | parameters: |
| 19 | - name: REPO_TOP |
| 20 | type: string |
| 21 | default: . |
| 22 | |
Miguel Young de la Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 23 | steps: |
| 24 | - bash: | |
| 25 | set -e |
Rupert Swarbrick | d0ca7e9 | 2021-03-15 13:00:32 +0000 | [diff] [blame] | 26 | cd ${{ parameters.REPO_TOP }} |
| 27 | ci/install-package-dependencies.sh \ |
| 28 | --verilator-version $(VERILATOR_VERSION) \ |
Alphan Ulusoy | e220589 | 2021-05-13 09:36:17 -0400 | [diff] [blame] | 29 | --verible-version $(VERIBLE_VERSION) \ |
| 30 | --rust-version $(RUST_VERSION) |
Miles Dai | f14a76a | 2022-06-08 12:31:03 -0400 | [diff] [blame] | 31 | retryCountOnTaskFailure: 3 |
Miguel Young de la Sota | 9438391 | 2019-12-05 14:34:04 -0600 | [diff] [blame] | 32 | displayName: 'Install package dependencies' |