Jenkins: Fix non-native macOS build creating an archive when not requested
This commit is contained in:
20
.ci/build.sh
20
.ci/build.sh
@@ -219,9 +219,10 @@ then
|
|||||||
# Call build with the correct MSYSTEM.
|
# Call build with the correct MSYSTEM.
|
||||||
echo [-] Switching to MSYSTEM [$msys]
|
echo [-] Switching to MSYSTEM [$msys]
|
||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
strip_arg=
|
args=
|
||||||
[ $strip -ne 0 ] && strip_arg="-t "
|
[ $strip -ne 0 ] && args="-t $args"
|
||||||
CHERE_INVOKING=yes MSYSTEM="$msys" bash -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$strip_arg""$cmake_flags"
|
[ $skiparchive -ne 0 ] && args="-n $args"
|
||||||
|
CHERE_INVOKING=yes MSYSTEM="$msys" bash -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$args""$cmake_flags"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -350,13 +351,13 @@ then
|
|||||||
for arch_universal in $(echo "$arch" | tr '+' ' ')
|
for arch_universal in $(echo "$arch" | tr '+' ' ')
|
||||||
do
|
do
|
||||||
# Run build for the architecture.
|
# Run build for the architecture.
|
||||||
strip_arg=
|
args=
|
||||||
[ $strip -ne 0 ] && strip_arg="-t "
|
[ $strip -ne 0 ] && args="-t $args"
|
||||||
case $arch_universal in # workaround: force new dynarec on for ARM
|
case $arch_universal in # workaround: force new dynarec on for ARM
|
||||||
arm32 | arm64) cmake_flags_extra="-D NEW_DYNAREC=ON";;
|
arm32 | arm64) cmake_flags_extra="-D NEW_DYNAREC=ON";;
|
||||||
*) cmake_flags_extra=;;
|
*) cmake_flags_extra=;;
|
||||||
esac
|
esac
|
||||||
zsh -lc 'exec "'"$0"'" -n -b "universal part" "'"$arch_universal"'" '"$strip_arg""$cmake_flags"' '"$cmake_flags_extra"
|
zsh -lc 'exec "'"$0"'" -n -b "universal part" "'"$arch_universal"'" '"$args""$cmake_flags"' '"$cmake_flags_extra"
|
||||||
status=$?
|
status=$?
|
||||||
|
|
||||||
if [ $status -eq 0 ]
|
if [ $status -eq 0 ]
|
||||||
@@ -479,9 +480,10 @@ then
|
|||||||
# Call build with the correct architecture.
|
# Call build with the correct architecture.
|
||||||
echo [-] Switching to architecture [$arch]
|
echo [-] Switching to architecture [$arch]
|
||||||
cd "$cwd"
|
cd "$cwd"
|
||||||
strip_arg=
|
args=
|
||||||
[ $strip -ne 0 ] && strip_arg="-t "
|
[ $strip -ne 0 ] && args="-t $args"
|
||||||
arch -"$arch" zsh -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$strip_arg""$cmake_flags"
|
[ $skiparchive -ne 0 ] && args="-n $args"
|
||||||
|
arch -"$arch" zsh -lc 'exec "'"$0"'" -b "'"$package_name"'" "'"$arch"'" '"$args""$cmake_flags"
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
echo [-] Using architecture [$(arch)]
|
echo [-] Using architecture [$(arch)]
|
||||||
|
Reference in New Issue
Block a user