|
1 | 1 | #! /bin/bash |
2 | 2 |
|
3 | | - |
4 | | -# Most of the content in this file comes from https://github.com/multi-build/multibuild, with some modifications |
5 | | -# Follow the license below |
6 | | - |
7 | | - |
8 | | - |
9 | | -# .. _license: |
10 | | - |
11 | | -# ********************* |
12 | | -# Copyright and License |
13 | | -# ********************* |
14 | | - |
15 | | -# The multibuild package, including all examples, code snippets and attached |
16 | | -# documentation is covered by the 2-clause BSD license. |
17 | | - |
18 | | -# Copyright (c) 2013-2024, Matt Terry and Matthew Brett; all rights |
19 | | -# reserved. |
20 | | - |
21 | | -# Redistribution and use in source and binary forms, with or without |
22 | | -# modification, are permitted provided that the following conditions are |
23 | | -# met: |
24 | | - |
25 | | -# 1. Redistributions of source code must retain the above copyright notice, |
26 | | -# this list of conditions and the following disclaimer. |
27 | | - |
28 | | -# 2. Redistributions in binary form must reproduce the above copyright |
29 | | -# notice, this list of conditions and the following disclaimer in the |
30 | | -# documentation and/or other materials provided with the distribution. |
31 | | - |
32 | | -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
33 | | -# IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
34 | | -# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
35 | | -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR |
36 | | -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
37 | | -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
38 | | -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
39 | | -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
40 | | -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
41 | | -# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
42 | | -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
43 | | - |
44 | | - |
45 | 3 | set -xeo pipefail |
46 | 4 | source tools/build_steps.sh |
47 | 5 | echo "------ BEFORE BUILD ---------" |
48 | 6 | before_build |
49 | 7 |
|
50 | | -if [[ "$NIGHTLY" = "true" ]]; then |
51 | | - echo "------ CLEAN CODE --------" |
52 | | - clean_code develop |
53 | | - echo "------ BUILD LIB --------" |
54 | | - build_lib "$PLAT" "$INTERFACE64" "1" |
55 | | -else |
56 | | - echo "------ CLEAN CODE --------" |
57 | | - clean_code $OPENBLAS_COMMIT |
58 | | - echo "------ BUILD LIB --------" |
59 | | - build_lib "$PLAT" "$INTERFACE64" "0" |
60 | | -fi |
| 8 | +echo "------ CLEAN CODE --------" |
| 9 | +clean_code $OPENBLAS_COMMIT |
| 10 | +echo "------ BUILD LIB --------" |
| 11 | +build_lib "$PLAT" "$INTERFACE64" |
0 commit comments