blob: caaa5a87e02cf15cbdfc14755fab70d35ed0c612 [file] [log] [blame]
Sam Elliottd2028282020-06-02 18:18:54 +01001# Copyright lowRISC contributors.
2# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3# SPDX-License-Identifier: Apache-2.0
4#
lowRISC Contributors802543a2019-08-31 12:12:56 +01005# Azure Pipelines CI build configuration
6# Documentation at https://aka.ms/yaml
7
8variables:
Rupert Swarbrickdf237122021-04-20 14:43:48 +01009 #
Alphan Ulusoye2205892021-05-13 09:36:17 -040010 # If updating VERILATOR_VERSION, OPENOCD_VERSION, TOOLCHAIN_VERSION or RUST_VERSION
11 # update the definitions in util/container/Dockerfile as well.
Rupert Swarbrickdf237122021-04-20 14:43:48 +010012 #
Philipp Wagnerb27f72d2021-07-23 14:41:20 +010013 VERILATOR_VERSION: 4.210
Philipp Wagnerb02d9c82021-02-24 15:00:54 +000014 OPENOCD_VERSION: 0.11.0
Miguel Osorio88179fc2019-09-19 23:37:48 -070015 TOOLCHAIN_PATH: /opt/buildcache/riscv
Philipp Wagner4db8b1c2021-05-05 09:58:40 +010016 VERIBLE_VERSION: v0.0-1213-g9e5c085
Alphan Ulusoye2205892021-05-13 09:36:17 -040017 RUST_VERSION: 1.52.1
Miguel Osorio88179fc2019-09-19 23:37:48 -070018 # Release tag from https://github.com/lowRISC/lowrisc-toolchains/releases
Philipp Wagnerca403532021-04-13 09:15:28 +010019 TOOLCHAIN_VERSION: 20210412-1
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -060020 # This controls where builds happen, and gets picked up by build_consts.sh.
21 BUILD_ROOT: $(Build.ArtifactStagingDirectory)
Philipp Wagnerb8b053f2021-05-25 09:26:34 +010022 VIVADO_VERSION: "2020.2"
lowRISC Contributors802543a2019-08-31 12:12:56 +010023
24trigger:
lowRISC Contributors802543a2019-08-31 12:12:56 +010025 batch: true
26 branches:
27 include:
Philipp Wagnerf565b662020-07-22 14:04:40 +010028 - "*"
Philipp Wagnerdd1706e2020-03-15 14:39:59 +000029 tags:
30 include:
31 - "*"
32pr:
33 branches:
34 include:
Philipp Wagnerf565b662020-07-22 14:04:40 +010035 - "*"
lowRISC Contributors802543a2019-08-31 12:12:56 +010036
Philipp Wagnerbd9ae432019-11-01 14:33:30 +000037jobs:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -060038- job: lint
Sam Elliott67e30fa2020-10-06 18:08:05 +010039 displayName: Run code quality checks (quick lint)
Philipp Wagnerbd9ae432019-11-01 14:33:30 +000040 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +010041 vmImage: ubuntu-18.04
Philipp Wagnerbd9ae432019-11-01 14:33:30 +000042 steps:
43 - bash: |
Garret Kellyf5608d02019-11-01 16:28:11 -040044 sudo apt-get remove -y clang-6.0 libclang-common-6.0-dev libclang1-6.0 libllvm6.0
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -060045 displayName: Remove existing Clang installation
46 - template: ci/install-package-dependencies.yml
Rupert Swarbrick105df012021-01-29 11:33:13 +000047 ## !!!
48 ##
49 ## The steps below here are duplicated in ci/jobs/quick-lint.sh
50 ## to allow developers to "run CI" locally. Keep them in sync.
51 ##
52 ## !!!
53 - bash: ci/scripts/show-env.sh
Philipp Wagner99862392020-07-22 13:32:34 +010054 displayName: Display environment information
Rupert Swarbrick105df012021-01-29 11:33:13 +000055 - bash: ci/scripts/lint-commits.sh $SYSTEM_PULLREQUEST_TARGETBRANCH
Philipp Wagner93cdcef2021-01-19 14:31:47 +000056 condition: eq(variables['Build.Reason'], 'PullRequest')
57 displayName: Check commit metadata
Rupert Swarbrick105df012021-01-29 11:33:13 +000058 - bash: ci/scripts/check-licence-headers.sh $SYSTEM_PULLREQUEST_TARGETBRANCH
Philipp Wagner93cdcef2021-01-19 14:31:47 +000059 condition: eq(variables['Build.Reason'], 'PullRequest')
60 displayName: Check Licence Headers
Rupert Swarbrickf0d5b0c2021-03-26 11:48:42 +000061 - bash: ci/scripts/exec-check.sh
62 condition: eq(variables['Build.Reason'], 'PullRequest')
63 displayName: Check executable bits
Rupert Swarbrick5dc62b02021-04-28 09:39:18 +010064 - bash: ci/scripts/check-ascii.sh
65 condition: eq(variables['Build.Reason'], 'PullRequest')
66 displayName: Check for non-ASCII characters in source code
Rupert Swarbrick105df012021-01-29 11:33:13 +000067 - bash: ci/scripts/python-lint.sh $SYSTEM_PULLREQUEST_TARGETBRANCH
Rupert Swarbrickfb9fdb62021-02-01 17:30:48 +000068 condition: eq(variables['Build.Reason'], 'PullRequest')
Rupert Swarbrick746f9b12021-03-26 17:19:00 +000069 displayName: Run Python lint (flake8)
Rupert Swarbrick2d70c752020-03-24 17:23:40 +000070 continueOnError: true
Rupert Swarbrick746f9b12021-03-26 17:19:00 +000071 - bash: ci/scripts/mypy.sh
72 condition: eq(variables['Build.Reason'], 'PullRequest')
73 displayName: Run Python lint (mypy)
Rupert Swarbrick105df012021-01-29 11:33:13 +000074 - bash: ci/scripts/check-generated.sh
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -060075 displayName: Ensure all generated files are clean and up-to-date
Rupert Swarbrick105df012021-01-29 11:33:13 +000076 - bash: ci/scripts/clang-format.sh $SYSTEM_PULLREQUEST_TARGETBRANCH
Philipp Wagnerbd9ae432019-11-01 14:33:30 +000077 condition: eq(variables['Build.Reason'], 'PullRequest')
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -060078 displayName: Use clang-format to check C/C++ coding style
Rupert Swarbrick105df012021-01-29 11:33:13 +000079 - bash: ci/scripts/include-guard.sh $SYSTEM_PULLREQUEST_TARGETBRANCH
Miguel Young de la Sotab23dc8c2020-01-14 13:52:33 -050080 condition: eq(variables['Build.Reason'], 'PullRequest')
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -060081 displayName: Check formatting on header guards
Rafal Kapuscik5802fd82021-04-14 16:03:31 +020082 - bash: ci/scripts/verible-format.sh
83 condition: eq(variables['Build.Reason'], 'PullRequest')
84 displayName: Check formatting of files on allow list with Verible
85 continueOnError: true
Rupert Swarbrick105df012021-01-29 11:33:13 +000086 - bash: ci/scripts/verible-lint.sh rtl
Michael Schaffnerde326062020-07-14 17:50:35 -070087 condition: eq(variables['Build.Reason'], 'PullRequest')
Michael Schaffnera94241f2020-08-03 15:50:14 -070088 displayName: Style-Lint RTL Verilog source files with Verible
Rupert Swarbrick105df012021-01-29 11:33:13 +000089 - bash: ci/scripts/verible-lint.sh dv
Michael Schaffnera94241f2020-08-03 15:50:14 -070090 condition: eq(variables['Build.Reason'], 'PullRequest')
91 displayName: Style-Lint DV Verilog source files with Verible
Rupert Swarbrick105df012021-01-29 11:33:13 +000092 - bash: ci/scripts/build-docs.sh
Philipp Wagner93cdcef2021-01-19 14:31:47 +000093 displayName: Render documentation
Rupert Swarbrick105df012021-01-29 11:33:13 +000094 - bash: ci/scripts/build-site.sh
Philipp Wagner93cdcef2021-01-19 14:31:47 +000095 displayName: Render landing site
Rupert Swarbrickfb9fdb62021-02-01 17:30:48 +000096 - bash: ci/scripts/get-build-type.sh "$SYSTEM_PULLREQUEST_TARGETBRANCH" "$(Build.Reason)"
Greg Chadwick99fe0642020-08-04 15:42:45 +010097 displayName: Check what kinds of changes the PR contains
Philipp Wagnerbd9ae432019-11-01 14:33:30 +000098 name: DetermineBuildType
Philipp Wagner1e643552019-09-04 15:39:14 +010099
Sam Elliott67e30fa2020-10-06 18:08:05 +0100100- job: slow_lints
101 displayName: Run code quality checks (in-depth lint)
102 dependsOn: lint
103 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100104 vmImage: ubuntu-18.04
Sam Elliott67e30fa2020-10-06 18:08:05 +0100105 steps:
106 - template: ci/install-package-dependencies.yml
Rupert Swarbrick2aff11b2021-02-16 17:11:37 +0000107 - bash: ci/scripts/check-vendoring.sh
Sam Elliott67e30fa2020-10-06 18:08:05 +0100108 displayName: Check vendored directories are up-to-date
109
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600110- job: sw_build
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100111 displayName: Build Software for Earl Grey toplevel design
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000112 dependsOn: lint
Philipp Wagner9d20ee62019-11-29 14:27:28 +0000113 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000114 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100115 vmImage: ubuntu-18.04
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000116 steps:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600117 - template: ci/install-package-dependencies.yml
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000118 - bash: |
119 set -x
120 sudo util/get-toolchain.py \
Srikrishna Iyer98333ba2020-11-16 23:12:29 -0800121 --install-dir="$TOOLCHAIN_PATH" \
Sam Elliotteb8ace42020-06-03 17:47:55 +0100122 --release-version="$TOOLCHAIN_VERSION" \
Philipp Wagner1c514412019-11-27 14:48:47 +0000123 --update
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600124 displayName: Install toolchain
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000125 - bash: |
Miguel Young de la Sota63793572019-11-13 14:18:51 -0600126 . util/build_consts.sh
Miguel Young de la Sota4a4946d2019-11-21 10:44:18 -0600127 ./meson_init.sh -A
Miguel Young de la Sota76526c32020-01-28 10:24:41 -0500128 ninja -C "$OBJ_DIR" all
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600129 displayName: Build embedded targets
Miguel Young de la Sota9d20b3d2020-02-03 16:35:31 -0500130 - bash: |
131 . util/build_consts.sh
132 ninja -C "$OBJ_DIR" test
Sam Elliotteb8ace42020-06-03 17:47:55 +0100133 displayName: Run unit tests
Philipp Wagner622ec3f2021-02-02 18:37:24 +0000134 - bash: |
135 . util/build_consts.sh
136 # Remove all Nexys Video-related build artifacts, which will be produced
137 # by the sw_build_nexysvideo job below (see comment there).
138 find "$BIN_DIR/sw/device" -name '*fpga_nexysvideo*' -type f -delete
139 displayName: Delete all Nexys Video build artifacts
Sam Elliotteb8ace42020-06-03 17:47:55 +0100140 - template: ci/upload-artifacts-template.yml
Miguel Young de la Sotab4df8602019-11-21 12:44:11 -0600141 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000142 includePatterns:
143 - "/sw/***"
lowRISC Contributors802543a2019-08-31 12:12:56 +0100144
Philipp Wagner622ec3f2021-02-02 18:37:24 +0000145# Software targeting the Nexys Video board is produced by patching the source
146# tree before building. This produces a full sw build tree, however only the
147# artifacts with "nexysvideo" in the name are actually the ones we're looking
148# for. Everything else will be discarded.
149# TODO: This is a rather ugly hack, which will go away once we properly support
150# building more than one top-level design with different parametrizations.
151# Work towards this goal is tracked in issue #4669.
Timothy Chenf835aa32021-01-08 16:27:50 -0800152- job: sw_build_nexysvideo
153 displayName: Build Software for Earl Grey toplevel design targeting the Nexys Video board
154 dependsOn: lint
Timothy Chenac28d1e2021-08-18 10:58:23 -0700155 # Make the following condition always false for now, see #7814.
156 condition: and(succeeded(), False, eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
Timothy Chenf835aa32021-01-08 16:27:50 -0800157 pool:
158 vmImage: ubuntu-18.04
159 steps:
160 - template: ci/install-package-dependencies.yml
161 - bash: |
162 set -x
163 sudo util/get-toolchain.py \
164 --install-dir="$TOOLCHAIN_PATH" \
165 --release-version="$TOOLCHAIN_VERSION" \
166 --update
167 displayName: Install toolchain
168 - bash: |
169 . util/build_consts.sh
170 ./hw/top_earlgrey/util/top_earlgrey_reduce.py
171 ./meson_init.sh -A
172 ninja -C "$OBJ_DIR" all
Philipp Wagner622ec3f2021-02-02 18:37:24 +0000173
174 # Delete all build artifacts which are *not* for the Nexys Video board.
175 find "$BIN_DIR/sw/device" -not -name '*fpga_nexysvideo*' -type f -delete
Timothy Chenf835aa32021-01-08 16:27:50 -0800176 displayName: Build embedded targets
177 - bash: |
178 . util/build_consts.sh
179 ninja -C "$OBJ_DIR" test
180 displayName: Run unit tests
181 - template: ci/upload-artifacts-template.yml
182 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000183 includePatterns:
184 - "/sw/device/**/*nexysvideo*"
Timothy Chenf835aa32021-01-08 16:27:50 -0800185
Pirmin Vogel18d8e132021-08-03 14:35:29 +0200186# Software targeting the English Breakfast top level is produced by patching
187# the source tree before building. This builds a selected subset of software
188# only.
189# TODO: This is a rather ugly hack, which will go away once we properly support
190# building more than one top-level design with different parametrizations.
191# Work towards this goal is tracked in issue #4669.
192- job: sw_build_englishbreakfast
193 displayName: Build Software for English Breakfast toplevel design
194 dependsOn: lint
195 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
196 pool:
197 vmImage: ubuntu-18.04
198 steps:
199 - template: ci/install-package-dependencies.yml
200 - bash: |
201 set -x
202 sudo util/get-toolchain.py \
203 --install-dir="$TOOLCHAIN_PATH" \
204 --release-version="$TOOLCHAIN_VERSION" \
205 --update
206 displayName: Install toolchain
207 - bash: |
208 . util/build_consts.sh
209 ./meson_init.sh -A
210 # Patch software.
211 ./hw/top_englishbreakfast/util/prepare_sw.py
212 # Build FPGA boot ROM and aes_serial binary for FPGA SCA.
213 ninja -C "$OBJ_DIR" sw/device/boot_rom/boot_rom_export_fpga_nexysvideo
214 ninja -C "$OBJ_DIR" sw/device/sca/aes_serial_export_fpga_nexysvideo
215 # Build binaries for Verilator simulation.
216 ninja -C "$OBJ_DIR" sw/device/boot_rom/boot_rom_export_sim_verilator
Timothy Trippel0703f962021-09-02 21:08:20 +0000217 ninja -C "$OBJ_DIR" sw/device/tests/aes_smoketest_export_sim_verilator
Pirmin Vogel18d8e132021-08-03 14:35:29 +0200218 ninja -C "$OBJ_DIR" sw/device/examples/hello_world/hello_world_export_sim_verilator
219 displayName: Build embedded targets
220 - template: ci/upload-artifacts-template.yml
221 parameters:
222 includePatterns:
223 - "/sw/device/***"
224
Luís Marques5849cd12020-06-26 10:33:55 +0100225# We continue building with GCC, despite defaulting to Clang. This is a copy of
226# `sw_build` with `meson_init.sh` configured with the GCC toolchain, instead of
227# the default toolchain.
228- job: sw_build_gcc
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100229 displayName: Build Software for Earl Grey toplevel design (with GCC)
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100230 dependsOn: lint
231 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
232 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100233 vmImage: ubuntu-18.04
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100234 steps:
235 - template: ci/install-package-dependencies.yml
236 - bash: |
237 set -x
238 sudo util/get-toolchain.py \
Srikrishna Iyer98333ba2020-11-16 23:12:29 -0800239 --install-dir="$TOOLCHAIN_PATH" \
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100240 --release-version="$TOOLCHAIN_VERSION" \
241 --update
242 displayName: Install toolchain
243 - bash: |
244 . util/build_consts.sh
245 ./meson_init.sh -A \
Luís Marques5849cd12020-06-26 10:33:55 +0100246 -t "$TOOLCHAIN_PATH/meson-riscv32-unknown-elf-gcc.txt"
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100247 ninja -C "$OBJ_DIR" all
248 displayName: Build embedded targets
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100249 - bash: |
250 . util/build_consts.sh
251 ninja -C "$OBJ_DIR" test
252 displayName: Run unit tests
Sam Elliott7a00a4b2020-06-03 17:48:10 +0100253
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700254- job: chip_earlgrey_verilator
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600255 displayName: Build Verilator simulation of the Earl Grey toplevel design
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000256 dependsOn: lint
Philipp Wagner9d20ee62019-11-29 14:27:28 +0000257 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
Philipp Wagner0907ca12020-04-21 12:04:32 +0100258 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100259 vmImage: ubuntu-18.04
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000260 steps:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600261 - template: ci/install-package-dependencies.yml
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000262 - bash: |
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000263 python3 --version
264 fusesoc --version
265 verilator --version
Michael Schaffneraa193f92020-12-16 11:16:17 -0800266 verible-verilog-lint --version
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600267 displayName: Display environment
Rupert Swarbricke77e2f12021-09-03 18:09:53 +0100268 - bash: ci/scripts/build-chip-verilator.sh earlgrey
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600269 displayName: Build simulation with Verilator
270 - template: ci/upload-artifacts-template.yml
Miguel Young de la Sotab4df8602019-11-21 12:44:11 -0600271 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000272 includePatterns:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700273 - "/hw/top_earlgrey/Vchip_earlgrey_verilator"
Philipp Wagnerf4655a12019-10-30 11:59:15 +0000274
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700275- job: chip_englishbreakfast_verilator
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100276 displayName: Build Verilator simulation of the English Breakfast toplevel design
277 dependsOn: lint
278 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'))
279 pool:
280 vmImage: ubuntu-18.04
281 steps:
282 - template: ci/install-package-dependencies.yml
283 - bash: |
284 python3 --version
285 fusesoc --version
286 verilator --version
287 verible-verilog-lint --version
288 displayName: Display environment
Rupert Swarbricke77e2f12021-09-03 18:09:53 +0100289 - bash: ci/scripts/build-chip-verilator.sh englishbreakfast
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100290 displayName: Build simulation with Verilator
291 - template: ci/upload-artifacts-template.yml
292 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000293 includePatterns:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700294 - "/hw/top_englishbreakfast/Vchip_englishbreakfast_verilator"
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100295
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600296- job: execute_verilated_tests
Alphan Ulusoya628be12021-05-14 16:24:02 -0400297 displayName: Execute tests on the Verilated system (excl. slow tests)
Philipp Wagnera4b89b92021-05-20 22:25:42 +0100298 pool: ci-public
Timothy Chen7d1436d2019-12-04 17:26:14 -0800299 dependsOn:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700300 - chip_earlgrey_verilator
Timothy Chen7d1436d2019-12-04 17:26:14 -0800301 - sw_build
302 steps:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600303 - template: ci/install-package-dependencies.yml
304 - template: ci/download-artifacts-template.yml
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000305 parameters:
306 downloadPartialBuildBinFrom:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700307 - chip_earlgrey_verilator
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000308 - sw_build
Timothy Chen7d1436d2019-12-04 17:26:14 -0800309 - bash: |
Philipp Wagner33fadd02020-09-09 19:39:25 +0100310 # Install an additional pytest dependency for result upload.
311 pip3 install pytest-azurepipelines
312
Timothy Chen7d1436d2019-12-04 17:26:14 -0800313 . util/build_consts.sh
Philipp Wagner57418e72019-12-02 21:25:27 +0000314 pytest --version
Philipp Wagner03aaf322020-09-09 19:11:44 +0100315 pytest test/systemtest/earlgrey/test_sim_verilator.py \
Alphan Ulusoya628be12021-05-14 16:24:02 -0400316 -m "not slow" \
Philipp Wagner33fadd02020-09-09 19:39:25 +0100317 --log-cli-level=DEBUG \
Alphan Ulusoya628be12021-05-14 16:24:02 -0400318 --test-run-title="Run system tests with Verilator simulation (excl. slow tests)" \
Philipp Wagner33fadd02020-09-09 19:39:25 +0100319 --napoleon-docstrings
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600320 displayName: Execute tests
Timothy Chen7d1436d2019-12-04 17:26:14 -0800321
Pirmin Vogel18d8e132021-08-03 14:35:29 +0200322- job: execute_verilated_tests_englishbreakfast
323 displayName: Execute tests on the Verilated English Breakfast toplevel design
324 pool: ci-public
325 dependsOn:
326 - chip_englishbreakfast_verilator
327 - sw_build_englishbreakfast
328 steps:
329 - template: ci/install-package-dependencies.yml
330 - template: ci/download-artifacts-template.yml
331 parameters:
332 downloadPartialBuildBinFrom:
333 - chip_englishbreakfast_verilator
334 - sw_build_englishbreakfast
335 - bash: |
336 # Install an additional pytest dependency for result upload.
337 pip3 install pytest-azurepipelines
338
339 . util/build_consts.sh
340 pytest --version
341 pytest test/systemtest/englishbreakfast/test_sim_verilator.py \
342 -m "not slow" \
343 --log-cli-level=DEBUG \
344 --test-run-title="Run English Breakfast system tests with Verilator simulation" \
345 --napoleon-docstrings
346 displayName: Execute tests
347
Alphan Ulusoya628be12021-05-14 16:24:02 -0400348# This test is in a separate job becuase it takes longer to complete.
349- job: execute_silicon_creator_verilated_test
350 displayName: Execute silicon_creator test on the Verilated system
Philipp Wagnera4b89b92021-05-20 22:25:42 +0100351 pool: ci-public
Alphan Ulusoya628be12021-05-14 16:24:02 -0400352 dependsOn:
353 - chip_earlgrey_verilator
354 - sw_build
355 steps:
356 - template: ci/install-package-dependencies.yml
357 - template: ci/download-artifacts-template.yml
358 parameters:
359 downloadPartialBuildBinFrom:
360 - chip_earlgrey_verilator
361 - sw_build
362 - bash: |
363 # Install an additional pytest dependency for result upload.
364 pip3 install pytest-azurepipelines
365
366 . util/build_consts.sh
367 pytest --version
368 pytest test/systemtest/earlgrey/test_sim_verilator.py \
Timothy Trippel0703f962021-09-02 21:08:20 +0000369 -k test_apps_selfchecking_silicon_creator[uart_smoketest] \
Alphan Ulusoya628be12021-05-14 16:24:02 -0400370 --log-cli-level=DEBUG \
371 --test-run-title="Run silicon_creator system test with Verilator simulation" \
372 --napoleon-docstrings
373 displayName: Execute silicon_creator test
374
Greg Chadwickbf9dc382020-04-17 09:30:40 +0100375- template: ci/run-riscv-compliance.yml
376 parameters:
377 rvc_test_suites:
378 - rv32i
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600379
Greg Chadwickbf9dc382020-04-17 09:30:40 +0100380- template: ci/run-riscv-compliance.yml
381 parameters:
382 rvc_test_suites:
383 - rv32im
384 - rv32imc
385 - rv32Zicsr
Timothy Chen7d1436d2019-12-04 17:26:14 -0800386
Greg Chadwick99fe0642020-08-04 15:42:45 +0100387- job: otbn_standalone_tests
388 displayName: Run OTBN Smoke Test
389 dependsOn: lint
Philipp Wagner8d3e5632020-08-19 14:31:39 +0100390 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100391 vmImage: ubuntu-18.04
Philipp Wagnerbf0ab0a2020-12-15 12:03:42 +0000392 timeoutInMinutes: 10
Greg Chadwick99fe0642020-08-04 15:42:45 +0100393 steps:
394 - template: ci/install-package-dependencies.yml
395 - bash: |
396 set -x
397 sudo util/get-toolchain.py \
Srikrishna Iyer98333ba2020-11-16 23:12:29 -0800398 --install-dir="$TOOLCHAIN_PATH" \
Greg Chadwick99fe0642020-08-04 15:42:45 +0100399 --release-version="$TOOLCHAIN_VERSION" \
400 --update
Rupert Swarbrick54278382020-08-25 12:45:47 +0100401 echo "##vso[task.prependpath]$TOOLCHAIN_PATH/bin"
Greg Chadwick99fe0642020-08-04 15:42:45 +0100402 displayName: Install toolchain
403 - bash: |
Greg Chadwick99fe0642020-08-04 15:42:45 +0100404 python3 --version
405 fusesoc --version
406 verilator --version
407 displayName: Display environment
408 - bash: |
Rupert Swarbrick7bd2a372020-10-02 12:36:12 +0100409 make -C hw/ip/otbn/dv/otbnsim test
410 displayName: OTBN ISS Test
411 - bash: |
Greg Chadwick99fe0642020-08-04 15:42:45 +0100412 ./hw/ip/otbn/dv/smoke/run_smoke.sh
413 displayName: OTBN Smoke Test
Rupert Swarbrick54278382020-08-25 12:45:47 +0100414 - bash: |
Rupert Swarbrick7087ed82020-11-13 18:16:46 +0000415 make -C hw/ip/otbn/util asm-check
Rupert Swarbrick54278382020-08-25 12:45:47 +0100416 displayName: Assemble and link code snippets
Greg Chadwick99fe0642020-08-04 15:42:45 +0100417
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200418- job: chip_earlgrey_cw310
419 displayName: Build CW310 variant of the Earl Grey toplevel design using Vivado
420 dependsOn:
421 - lint
422 # The bootrom is built into the FPGA image at synthesis time.
Pirmin Vogelb41684f2021-07-20 09:49:50 +0200423 - sw_build
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200424 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'), eq(dependencies.lint.outputs['DetermineBuildType.onlyDvChanges'], '0'))
425 pool: ci-public
426 timeoutInMinutes: 120 # 2 hours
427 steps:
428 - template: ci/install-package-dependencies.yml
429 - template: ci/download-artifacts-template.yml
430 parameters:
431 downloadPartialBuildBinFrom:
Pirmin Vogelb41684f2021-07-20 09:49:50 +0200432 - sw_build
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200433 - bash: |
434 set -e
435 . util/build_consts.sh
436
437 module load "xilinx/vivado/$(VIVADO_VERSION)"
438
439 mkdir -p "$OBJ_DIR/hw"
440 mkdir -p "$BIN_DIR/hw/top_earlgrey"
441
Pirmin Vogelb41684f2021-07-20 09:49:50 +0200442 BOOTROM_VMEM="$BIN_DIR/sw/device/boot_rom/boot_rom_fpga_cw310.scr.39.vmem"
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200443 test -f "$BOOTROM_VMEM"
Pirmin Vogelb41684f2021-07-20 09:49:50 +0200444 OTP_VMEM="$BIN_DIR/sw/device/otp_img/otp_img_fpga_cw310.vmem"
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200445 test -f "$OTP_VMEM"
446
447 fusesoc --cores-root=. \
448 run --flag=fileset_top --target=synth --setup --build \
449 --build-root="$OBJ_DIR/hw" \
450 lowrisc:systems:chip_earlgrey_cw310 \
451 --BootRomInitFile="$BOOTROM_VMEM" \
452 --OtpCtrlMemInitFile="$OTP_VMEM"
453
454 cp "$OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.bit" \
455 "$BIN_DIR/hw/top_earlgrey"
456 displayName: Build bitstream with Vivado
457 - bash: |
458 . util/build_consts.sh
459 echo Synthesis log
460 cat $OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.runs/synth_1/runme.log || true
461
462 echo Implementation log
463 cat $OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_cw310_0.1.runs/impl_1/runme.log || true
464 condition: always()
465 displayName: Display synthesis and implementation logs
466 - template: ci/upload-artifacts-template.yml
467 parameters:
468 includePatterns:
469 - "/hw/top_earlgrey/lowrisc_systems_chip_earlgrey_cw310_0.1.bit"
Philipp Wagner9b37c342021-02-01 16:21:38 +0000470 - publish: "$(Build.ArtifactStagingDirectory)"
471 artifact: chip_earlgrey_cw310-build-out
472 displayName: Upload all Vivado artifacts for CW310
473 condition: failed()
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200474
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700475- job: chip_earlgrey_nexysvideo
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600476 displayName: Build NexysVideo variant of the Earl Grey toplevel design using Vivado
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000477 dependsOn:
478 - lint
479 # The bootrom is built into the FPGA image at synthesis time.
Timothy Chenf835aa32021-01-08 16:27:50 -0800480 - sw_build_nexysvideo
Timothy Chenac28d1e2021-08-18 10:58:23 -0700481 # Make the following condition always false for now, see #7814.
482 condition: and(succeeded(), False, eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'), eq(dependencies.lint.outputs['DetermineBuildType.onlyDvChanges'], '0'))
Philipp Wagnerc58f6a02020-10-07 19:57:09 +0100483 pool: ci-public
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000484 timeoutInMinutes: 120 # 2 hours
485 steps:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600486 - template: ci/install-package-dependencies.yml
487 - template: ci/download-artifacts-template.yml
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000488 parameters:
489 downloadPartialBuildBinFrom:
490 - sw_build_nexysvideo
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000491 - bash: |
492 set -e
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600493 . util/build_consts.sh
Philipp Wagnerc58f6a02020-10-07 19:57:09 +0100494
495 module load "xilinx/vivado/$(VIVADO_VERSION)"
496
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600497 mkdir -p "$OBJ_DIR/hw"
498 mkdir -p "$BIN_DIR/hw/top_earlgrey"
499
Timothy Chenf835aa32021-01-08 16:27:50 -0800500 ./hw/top_earlgrey/util/top_earlgrey_reduce.py
501
Rupert Swarbrick54c37c42021-07-15 15:06:42 +0100502 BOOTROM_VMEM="$BIN_DIR/sw/device/boot_rom/boot_rom_fpga_nexysvideo.scr.39.vmem"
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600503 test -f "$BOOTROM_VMEM"
Michael Schaffner20972a62021-02-24 18:53:46 -0800504 OTP_VMEM="$BIN_DIR/sw/device/otp_img/otp_img_fpga_nexysvideo.vmem"
505 test -f "$OTP_VMEM"
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600506
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600507 fusesoc --cores-root=. \
Timothy Chenbe47dd72020-07-27 14:57:07 -0700508 run --flag=fileset_top --target=synth --setup --build \
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600509 --build-root="$OBJ_DIR/hw" \
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700510 lowrisc:systems:chip_earlgrey_nexysvideo \
Michael Schaffner20972a62021-02-24 18:53:46 -0800511 --BootRomInitFile="$BOOTROM_VMEM" \
512 --OtpCtrlMemInitFile="$OTP_VMEM"
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600513
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700514 cp "$OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_nexysvideo_0.1.bit" \
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600515 "$BIN_DIR/hw/top_earlgrey"
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600516 displayName: Build bitstream with Vivado
Philipp Wagnerf072c032020-12-08 17:16:30 +0000517 - bash: |
518 . util/build_consts.sh
519 echo Synthesis log
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700520 cat $OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_nexysvideo_0.1.runs/synth_1/runme.log || true
Philipp Wagnerf072c032020-12-08 17:16:30 +0000521
522 echo Implementation log
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700523 cat $OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_earlgrey_nexysvideo_0.1.runs/impl_1/runme.log || true
Philipp Wagnerf072c032020-12-08 17:16:30 +0000524 condition: always()
525 displayName: Display synthesis and implementation logs
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600526 - template: ci/upload-artifacts-template.yml
Miguel Young de la Sotab4df8602019-11-21 12:44:11 -0600527 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000528 includePatterns:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700529 - "/hw/top_earlgrey/lowrisc_systems_chip_earlgrey_nexysvideo_0.1.bit"
Philipp Wagner9b37c342021-02-01 16:21:38 +0000530 - publish: "$(Build.ArtifactStagingDirectory)"
531 artifact: chip_earlgrey_nexysvideo-build-out
532 displayName: Upload all Vivado artifacts for Nexys Video
533 condition: failed()
lowRISC Contributors802543a2019-08-31 12:12:56 +0100534
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700535- job: chip_englishbreakfast_cw305
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100536 displayName: Build CW305 variant of the English Breakfast toplevel design using Vivado
537 dependsOn:
538 - lint
Pirmin Vogel18d8e132021-08-03 14:35:29 +0200539 - sw_build_englishbreakfast
Timothy Chen64f6a5a2021-02-05 17:04:40 -0800540 condition: and(succeeded(), eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'), eq(dependencies.lint.outputs['DetermineBuildType.onlyDvChanges'], '0'))
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100541 pool: ci-public
542 timeoutInMinutes: 120 # 2 hours
543 steps:
544 - template: ci/install-package-dependencies.yml
545 - template: ci/download-artifacts-template.yml
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000546 parameters:
547 downloadPartialBuildBinFrom:
Pirmin Vogel18d8e132021-08-03 14:35:29 +0200548 - sw_build_englishbreakfast
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100549 - bash: |
550 set -e
551 . util/build_consts.sh
552
553 module load "xilinx/vivado/$(VIVADO_VERSION)"
554
555 mkdir -p "$OBJ_DIR/hw"
556 mkdir -p "$BIN_DIR/hw/top_englishbreakfast"
557
Rupert Swarbrick97fe6a82021-07-16 11:27:50 +0100558 BOOTROM_VMEM="$BIN_DIR/sw/device/boot_rom/boot_rom_fpga_nexysvideo.32.vmem"
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100559 test -f "$BOOTROM_VMEM"
560
561 fusesoc --cores-root=. \
562 run --flag=fileset_topgen --target=synth --setup --build \
563 --build-root="$OBJ_DIR/hw" \
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700564 lowrisc:systems:chip_englishbreakfast_cw305 \
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100565 --BootRomInitFile="$BOOTROM_VMEM"
566
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700567 cp "$OBJ_DIR/hw/synth-vivado/lowrisc_systems_chip_englishbreakfast_cw305_0.1.bit" \
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100568 "$BIN_DIR/hw/top_englishbreakfast"
569 displayName: Build bitstream with Vivado
570 - template: ci/upload-artifacts-template.yml
571 parameters:
Philipp Wagner5aa7ed32021-02-02 18:53:36 +0000572 includePatterns:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700573 - "/hw/top_englishbreakfast/lowrisc_systems_chip_englishbreakfast_cw305_0.1.bit"
Pirmin Vogel2f42ccd2020-12-22 20:19:30 +0100574
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200575- job: execute_fpga_tests_cw310
576 displayName: Execute tests on ChipWhisperer CW310 FPGA board
577 pool: FPGA
578 timeoutInMinutes: 30
579 dependsOn:
580 - chip_earlgrey_cw310
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200581 - sw_build
582 steps:
583 - template: ci/install-package-dependencies.yml
584 - template: ci/download-artifacts-template.yml
585 parameters:
586 downloadPartialBuildBinFrom:
587 - chip_earlgrey_cw310
Pirmin Vogelad2afea2021-05-20 10:43:40 +0200588 - sw_build
589 - bash: |
590 set -e
591
592 # Install an additional pytest dependency for result upload.
593 pip3 install pytest-azurepipelines
594
595 . util/build_consts.sh
596 pytest --version
597 pytest test/systemtest/earlgrey/test_fpga_cw310.py \
598 --log-cli-level=DEBUG \
599 --test-run-title="Run system tests on ChipWhisperer CW310 FPGA board" \
600 --napoleon-docstrings
601 displayName: Execute tests
602
603- job: execute_fpga_tests_nexysvideo
604 displayName: Execute tests on Nexys Video FPGA board
Philipp Wagner11d2dcb2020-09-29 16:27:46 +0100605 pool: FPGA
606 timeoutInMinutes: 30
607 dependsOn:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700608 - chip_earlgrey_nexysvideo
Timothy Chenf835aa32021-01-08 16:27:50 -0800609 - sw_build_nexysvideo
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000610 - sw_build
Philipp Wagner11d2dcb2020-09-29 16:27:46 +0100611 steps:
612 - template: ci/install-package-dependencies.yml
613 - template: ci/download-artifacts-template.yml
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000614 parameters:
615 downloadPartialBuildBinFrom:
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700616 - chip_earlgrey_nexysvideo
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000617 - sw_build_nexysvideo
618 - sw_build
Philipp Wagner11d2dcb2020-09-29 16:27:46 +0100619 - bash: |
620 set -e
621
622 module load "xilinx/vivado/$(VIVADO_VERSION)"
623
624 # Install an additional pytest dependency for result upload.
625 pip3 install pytest-azurepipelines
626
627 . util/build_consts.sh
628 pytest --version
629 pytest test/systemtest/earlgrey/test_fpga_nexysvideo.py \
630 --log-cli-level=DEBUG \
631 --test-run-title="Run system tests on Nexys Video FPGA board" \
632 --napoleon-docstrings
Philipp Wagner11d2dcb2020-09-29 16:27:46 +0100633 displayName: Execute tests
634
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600635- job: deploy_release_artifacts
636 displayName: Package and deploy release distribution
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000637 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100638 vmImage: ubuntu-18.04
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000639 dependsOn:
640 - lint
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600641 - sw_build
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700642 - chip_earlgrey_verilator
643 - chip_earlgrey_nexysvideo
Philipp Wagnera0a35a52021-08-04 16:39:35 +0100644 - chip_earlgrey_cw310
Timothy Chen64f6a5a2021-02-05 17:04:40 -0800645 condition: and(eq(dependencies.lint.outputs['DetermineBuildType.onlyDocChanges'], '0'), eq(dependencies.lint.outputs['DetermineBuildType.onlyDvChanges'], '0'))
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000646 steps:
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600647 - template: ci/install-package-dependencies.yml
648 - template: ci/download-artifacts-template.yml
Philipp Wagnerbdfb9332021-02-02 18:10:06 +0000649 parameters:
650 downloadPartialBuildBinFrom:
651 - sw_build
Timothy Chenac28d1e2021-08-18 10:58:23 -0700652 #- sw_build_nexysvideo
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700653 - chip_earlgrey_verilator
Timothy Chenac28d1e2021-08-18 10:58:23 -0700654 #- chip_earlgrey_nexysvideo
Philipp Wagnera0a35a52021-08-04 16:39:35 +0100655 - chip_earlgrey_cw310
Michael Schaffner93fe50c2021-03-31 16:25:42 -0700656 - chip_englishbreakfast_verilator
Miguel Young de la Sotad42948c2019-11-18 13:56:55 -0600657 - bash: |
Miguel Young de la Sotad42948c2019-11-18 13:56:55 -0600658 . util/build_consts.sh
Miguel Young de la Sotab5be8c62019-11-20 10:01:09 -0600659
Miguel Young de la Sotad42948c2019-11-18 13:56:55 -0600660 util/make_distribution.sh
Philipp Wagner542e2202019-10-30 13:10:16 +0000661
Miguel Young de la Sotad42948c2019-11-18 13:56:55 -0600662 tar --list -f $BIN_DIR/opentitan-*.tar.xz
663 # Put the resulting tar file into a directory the |publish| step below can reference.
664 mkdir "$BUILD_ROOT/dist-final"
665 mv $BIN_DIR/opentitan-*.tar.xz "$BUILD_ROOT/dist-final"
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600666 displayName: Create final dist directory out of partial ones
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000667 - publish: $(Build.ArtifactStagingDirectory)/dist-final
668 artifact: opentitan-dist
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600669 displayName: Upload release artifacts as Azure artifact
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000670 - task: GithubRelease@0
Miguel Young de la Sotaa68e3072020-01-02 13:59:54 -0600671 displayName: Upload to GitHub releases (only tags)
Philipp Wagner0b20f5d2019-11-01 16:24:52 +0000672 condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
Philipp Wagnerbd9ae432019-11-01 14:33:30 +0000673 inputs:
674 gitHubConnection: opentitan-release-upload
675 repositoryName: lowrisc/opentitan
676 addChangeLog: false
677 assets: |
678 $(Build.ArtifactStagingDirectory)/dist-final/*
Sam Elliotte257cd02020-09-10 13:49:38 +0100679
680
681- job: build_docker_containers
682 displayName: "Build Docker Containers"
683 pool:
Philipp Wagner5d1450c2020-10-06 12:26:36 +0100684 vmImage: ubuntu-18.04
Sam Elliotte257cd02020-09-10 13:49:38 +0100685 dependsOn:
686 - lint
687 steps:
688 - task: Docker@2
689 displayName: Build Developer Utility Container
690 inputs:
691 command: build
692 Dockerfile: ./util/container/Dockerfile
693 buildContext: .
694 - task: Docker@2
695 displayName: Build Documentation Builder Container
696 inputs:
697 command: build
698 tags: gcr.io/active-premise-257318/builder
699 Dockerfile: ./site/docs/builder.Dockerfile
700 buildContext: .
701 - task: Docker@2
702 displayName: Build Documentation Redirector Container
703 inputs:
704 command: build
705 Dockerfile: ./site/redirector/Dockerfile
706 buildContext: ./site/redirector