Miguel Young de la Sota | b4df860 | 2019-11-21 12:44:11 -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 archiving pipeline step outputs and uploading them. |
| 6 | # |
| 7 | # This template will archive all of $BIN_DIR, and upload it for use by |
| 8 | # downstream jobs using download_artifacts_template.yml. |
| 9 | # |
| 10 | # This template expects that a variable $BUILD_ROOT is set. See |
| 11 | # util/build_consts.sh for more information. |
| 12 | |
| 13 | steps: |
| 14 | - bash: | |
| 15 | set -e |
| 16 | test -n "$BUILD_ROOT" |
| 17 | . util/build_consts.sh |
| 18 | |
| 19 | tar -C "$BUILD_ROOT" \ |
| 20 | -cvf "$BUILD_ROOT/build-bin.tar" \ |
| 21 | "${BIN_DIR#"$BUILD_ROOT/"}" |
| 22 | displayName: 'Archive step outputs' |
| 23 | - publish: "$(Build.ArtifactStagingDirectory)/build-bin.tar" |
| 24 | artifact: ${{ parameters.artifact }}-build-bin |
| 25 | displayName: 'Upload step outputs' |
| 26 | |