diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 13c995c..5a33a0b 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -25,13 +25,10 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] build_type: [Release] - c_compiler: [gcc, clang, cl] + c_compiler: [gcc, clang] include: - - os: windows-latest - c_compiler: cl - cpp_compiler: cl - os: ubuntu-latest c_compiler: gcc cpp_compiler: g++ diff --git a/preinstall b/preinstall index cbf5c87..59d081f 100755 --- a/preinstall +++ b/preinstall @@ -7,8 +7,7 @@ fi SRC="$PWD" DST=/usr/include/Compound -PROJ=("Array" "Paper" "Pen" "Render" "Status" "Var" "MemMan" "Stack" "Utils"\ - "String" "Object") +set -- Array Paper Pen Render Status Var MemMan Stack Utils String Object # Create directory. if [ ! -d "$DST" ]; then @@ -16,22 +15,15 @@ if [ ! -d "$DST" ]; then fi # Install project-like headers. -PROJLEN=${#PROJ[*]} -echo "======== $PROJLEN projects in total ========" - -idx=0 -while :; do - if [[ $idx -eq $PROJLEN || $idx -gt $PROJLEN ]]; then - break; - fi +while :; do + p="$1" + if [ -z "$1" ]; then break; fi - p="${PROJ[$idx]}" - - cd "$p" - echo "`date` >>> Installing $p" + cd "$p" || exit 1 + echo "$(date) >>> Installing $p" cp -v include/*.h "$DST" - cd "$SRC" - ((idx++)) + cd "$SRC" || exit 1 + shift 1 echo done