(MOD) Aborted using bash for script executing for scripts modified are now supporting POSIX Shell.
(MOD) Modified github action file for abort supporting MS Windows as the target in current stage.
This commit is contained in:
7
.github/workflows/cmake-multi-platform.yml
vendored
7
.github/workflows/cmake-multi-platform.yml
vendored
@@ -25,13 +25,10 @@ jobs:
|
|||||||
#
|
#
|
||||||
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
|
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest]
|
||||||
build_type: [Release]
|
build_type: [Release]
|
||||||
c_compiler: [gcc, clang, cl]
|
c_compiler: [gcc, clang]
|
||||||
include:
|
include:
|
||||||
- os: windows-latest
|
|
||||||
c_compiler: cl
|
|
||||||
cpp_compiler: cl
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
c_compiler: gcc
|
c_compiler: gcc
|
||||||
cpp_compiler: g++
|
cpp_compiler: g++
|
||||||
|
24
preinstall
24
preinstall
@@ -7,8 +7,7 @@ fi
|
|||||||
|
|
||||||
SRC="$PWD"
|
SRC="$PWD"
|
||||||
DST=/usr/include/Compound
|
DST=/usr/include/Compound
|
||||||
PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\
|
set -- Array Paper Pen Render Status Var MemMan Stack Utils String Object
|
||||||
"String" "Object")
|
|
||||||
|
|
||||||
# Create directory.
|
# Create directory.
|
||||||
if [ ! -d "$DST" ]; then
|
if [ ! -d "$DST" ]; then
|
||||||
@@ -16,22 +15,15 @@ if [ ! -d "$DST" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install project-like headers.
|
# Install project-like headers.
|
||||||
PROJLEN=${#PROJ[*]}
|
while :; do
|
||||||
echo "======== $PROJLEN projects in total ========"
|
p="$1"
|
||||||
|
if [ -z "$1" ]; then break; fi
|
||||||
idx=0
|
|
||||||
while :; do
|
|
||||||
if [[ $idx -eq $PROJLEN || $idx -gt $PROJLEN ]]; then
|
|
||||||
break;
|
|
||||||
fi
|
|
||||||
|
|
||||||
p="${PROJ[$idx]}"
|
cd "$p" || exit 1
|
||||||
|
echo "$(date) >>> Installing $p"
|
||||||
cd "$p"
|
|
||||||
echo "`date` >>> Installing $p"
|
|
||||||
cp -v include/*.h "$DST"
|
cp -v include/*.h "$DST"
|
||||||
cd "$SRC"
|
cd "$SRC" || exit 1
|
||||||
((idx++))
|
shift 1
|
||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user