Skip to content

Commit

Permalink
Update scripts-testing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git authored Oct 30, 2024
1 parent 61dd76c commit 517c618
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/scripts-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,15 @@ jobs:
printf '%s\n' "${shells_dir:?}/extracted/${1:?}" 1>> "${shells_dir:?}/extracted/list.dat" || return "${?}"
}
if command 1> /dev/null -v 'sudo' && legacy_bb="$(command -v 'busybox')" && legacy_bb_dir="$(dirname "${legacy_bb:?}")"; then
sudo mv -f -- "${legacy_bb:?}" "${legacy_bb_dir:?}/busybox-legacy" || exit "${?}"
sudo mv -f -- "${legacy_bb:?}" "${legacy_bb_dir:?}/busybox-preinstalled" || exit "${?}"
fi
mkdir -p -- "${shells_dir:?}/extracted" || exit "${?}"
rm -f -- "${shells_dir:?}/extracted/list.dat" || exit "${?}"
touch -- "${shells_dir:?}/extracted/list.dat" || exit "${?}"
if test "${current_os:?}" = 'Linux'; then
prepare_shell 'busybox' 'bin' 'https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox'
prepare_shell 'busybox-x86' 'bin' 'https://busybox.net/downloads/binaries/1.30.0-i686/busybox'
prepare_shell 'busybox-x86' 'bin' 'https://busybox.net/downloads/binaries/1.35.0-i686-linux-musl/busybox'
prepare_shell 'busybox-x86-legacy' 'bin' 'https://busybox.net/downloads/binaries/1.30.0-i686/busybox'
prepare_shell 'bosh' 'tar.xz' 'http://fuz.su/pub/schilytools/bin/schily-2024-03-21-x86_64-linux-gcc.tar.xz'
fi
printf 'cache_is_outdated=%s\n' "${CACHE_IS_OUTDATED:?}" >> "${GITHUB_OUTPUT:?}"
Expand Down Expand Up @@ -119,8 +120,7 @@ jobs:
if test "${current_os:?}" = 'Linux'; then
sudo apt-get -y -qq install 'mksh' 'yash' 'posh' 1> /dev/null
elif test "${current_os:?}" = 'macOS'; then
brew 1> /dev/null install --quiet 'mksh' 'oksh' 'ksh93' 'yash'
brew install --build-from-source 'oils-for-unix'
brew 1> /dev/null install --quiet 'oils-for-unix' 'mksh' 'oksh' 'ksh93' 'yash'
#brew install --HEAD --build-from-source 'oils-for-unix'
else
choco 1> /dev/null install 'busybox' -y --no-progress
Expand Down Expand Up @@ -193,10 +193,10 @@ jobs:
{
local _shell _shell_cmd _status
EXECUTED_LIST=''
for _shell in sh dash bash busybox-legacy busybox busybox-x86 busybox-x86 ash hush mksh pdksh oksh ksh88 ksh93 ksh zsh yash posh osh bosh pbosh obosh; do
for _shell in sh dash bash busybox busybox-x86 busybox-x86 busybox-x86-legacy busybox-x86-legacy ash hush mksh pdksh oksh ksh88 ksh93 ksh zsh yash posh osh bosh pbosh obosh; do
if test "${_shell:?}" = 'ksh' && test -n "${ORIGINAL_KSH?}"; then _shell="${ORIGINAL_KSH:?}"; fi
if ! _shell_cmd="$(command -v "${_shell:?}")" || skip "${1:?}" "${_shell:?}"; then continue; fi
if test "${_shell:?}" != 'busybox-x86' && ! not_already_excuted "${_shell_cmd:?}"; then continue; fi
if test "${_shell:?}" != 'busybox-x86' && test "${_shell:?}" != 'busybox-x86-legacy' && ! not_already_excuted "${_shell_cmd:?}"; then continue; fi
printf 'SHELL: %s - SCRIPT: %s\n\n' "${_shell_cmd:?}" "${1:?}"
_status='0'
case "${_shell:?}" in
Expand Down

0 comments on commit 517c618

Please sign in to comment.