mirror of
https://github.com/uutils/coreutils
synced 2024-07-24 11:24:36 +00:00
Format case statements
This commit is contained in:
parent
1919b3ba17
commit
ebe5c51cee
22
.github/workflows/CICD.yml
vendored
22
.github/workflows/CICD.yml
vendored
|
@ -526,7 +526,13 @@ jobs:
|
||||||
i686-*) TARGET_ARCH=i686 ;;
|
i686-*) TARGET_ARCH=i686 ;;
|
||||||
x86_64-*) TARGET_ARCH=x86_64 ;;
|
x86_64-*) TARGET_ARCH=x86_64 ;;
|
||||||
esac;
|
esac;
|
||||||
unset TARGET_OS ; case '${{ matrix.job.target }}' in *-linux-*) TARGET_OS=linux ;; *-apple-*) TARGET_OS=macos ;; *-windows-*) TARGET_OS=windows ;; *-redox*) TARGET_OS=redox ;; esac;
|
unset TARGET_OS
|
||||||
|
case '${{ matrix.job.target }}' in
|
||||||
|
*-linux-*) TARGET_OS=linux ;;
|
||||||
|
*-apple-*) TARGET_OS=macos ;;
|
||||||
|
*-windows-*) TARGET_OS=windows ;;
|
||||||
|
*-redox*) TARGET_OS=redox ;;
|
||||||
|
esac
|
||||||
outputs TARGET_ARCH TARGET_OS
|
outputs TARGET_ARCH TARGET_OS
|
||||||
# package name
|
# package name
|
||||||
PKG_suffix=".tar.gz" ; case '${{ matrix.job.target }}' in *-pc-windows-*) PKG_suffix=".zip" ;; esac;
|
PKG_suffix=".tar.gz" ; case '${{ matrix.job.target }}' in *-pc-windows-*) PKG_suffix=".zip" ;; esac;
|
||||||
|
@ -561,10 +567,18 @@ jobs:
|
||||||
if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ; fi
|
if [ -n "${{ matrix.job.features }}" ]; then CARGO_FEATURES_OPTION='--features=${{ matrix.job.features }}' ; fi
|
||||||
outputs CARGO_FEATURES_OPTION
|
outputs CARGO_FEATURES_OPTION
|
||||||
# * CARGO_CMD
|
# * CARGO_CMD
|
||||||
CARGO_CMD='cross' ; case '${{ matrix.job.use-cross }}' in ''|0|f|false|n|no) CARGO_CMD='cargo' ;; redoxer) CARGO_CMD='redoxer' ;; esac;
|
CARGO_CMD='cross'
|
||||||
|
CARGO_CMD_OPTIONS='+${{ env.RUST_MIN_SRV }}'
|
||||||
|
case '${{ matrix.job.use-cross }}' in
|
||||||
|
''|0|f|false|n|no)
|
||||||
|
CARGO_CMD='cargo'
|
||||||
|
;;
|
||||||
|
redoxer)
|
||||||
|
CARGO_CMD='redoxer'
|
||||||
|
CARGO_CMD_OPTIONS=''
|
||||||
|
;;
|
||||||
|
esac
|
||||||
outputs CARGO_CMD
|
outputs CARGO_CMD
|
||||||
# * CARGO_CMD_OPTIONS
|
|
||||||
CARGO_CMD_OPTIONS='+${{ env.RUST_MIN_SRV }}' ; case '${{ matrix.job.target }}' in *-redox*) CARGO_CMD_OPTIONS="" ;; esac;
|
|
||||||
outputs CARGO_CMD_OPTIONS
|
outputs CARGO_CMD_OPTIONS
|
||||||
# ** pass needed environment into `cross` container (iff `cross` not already configured via "Cross.toml")
|
# ** pass needed environment into `cross` container (iff `cross` not already configured via "Cross.toml")
|
||||||
if [ "${CARGO_CMD}" = 'cross' ] && [ ! -e "Cross.toml" ] ; then
|
if [ "${CARGO_CMD}" = 'cross' ] && [ ! -e "Cross.toml" ] ; then
|
||||||
|
|
Loading…
Reference in a new issue