File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ ROOT_PATH=" $( cd " $( dirname $0 ) " ; echo $PWD ) /../.."
6+
7+ CORES_BUILD_PATH=$ROOT_PATH /obj
8+
9+ function build_core () {
10+ core_config=$1
11+
12+ CORE=" $( echo $core_config | cut -d ' .' -f 1) "
13+ ENDIAN=" $( echo $core_config | cut -d ' .' -f 2) "
14+ BITS=32
15+
16+ if [[ $CORE =~ " 64" ]]; then
17+ BITS=64
18+ fi
19+
20+ # Core specific flags to cmake
21+ CMAKE_CONF_FLAGS=" -DTARGET_ARCH=$CORE -DTARGET_WORD_SIZE=$BITS "
22+ CORE_DIR=$CORES_BUILD_PATH /$CORE /$ENDIAN
23+ mkdir -p $CORE_DIR
24+ pushd " $CORE_DIR " > /dev/null
25+
26+ if [[ $ENDIAN == " be" ]]; then
27+ CMAKE_CONF_FLAGS+=" -DTARGET_WORDS_BIGENDIAN=1"
28+ fi
29+
30+ cmake $CMAKE_CONF_FLAGS $ROOT_PATH
31+ cmake --build . -j" $( nproc) "
32+
33+ popd > /dev/null
34+ }
35+
36+ . $ROOT_PATH /cores.sh
37+
38+ for core_config in " ${CORES[@]} "
39+ do
40+ build_core $core_config
41+ done
Original file line number Diff line number Diff line change 1+ name : tlib CI
2+
3+ on :
4+ - push
5+ - pull_request
6+
7+ jobs :
8+ formatting-check :
9+ name : Formatting Check
10+ runs-on : ubuntu-24.04
11+
12+ steps :
13+ - name : Install dependencies
14+ run : |
15+ apt -qqy update
16+ apt -qqy install clang-format-19 cmake build-essential
17+
18+ - name : Clone repository
19+ uses : actions/checkout@v6
20+
21+ - name : Run clang-format check
22+ run : ./check-format.sh
23+
24+ - name : Build supported cores
25+ run : ./.github/scripts/build-tlib.sh
You can’t perform that action at this time.
0 commit comments