blob: 1f22e77a071d9bfeec4ea9f986b8d0e9371f5158 [file] [log] [blame]
Arthur She510e8402023-01-23 13:21:28 -08001#!/usr/bin/env bash
2#
3# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8set -u
9
10gen_sc7180_yaml(){
11 local yaml_file="$workspace/sc7180.yaml"
12 local job_file="$workspace/job.yaml"
13 local payload_type="${payload_type:?}"
14
15 bin_mode="$mode" \
16 "$ci_root/script/gen_sc7180_${payload_type}_yaml.sh" > "$yaml_file"
17
18 cp "$yaml_file" "$job_file"
19 archive_file "$yaml_file"
20 archive_file "$job_file"
21}
22
23set +u