Added GitHub action option to use --quick-start
This commit is contained in:
parent
54bc4c3c91
commit
d2d43ee711
|
|
@ -23,6 +23,10 @@ inputs:
|
||||||
description: 'The schematic file (.sch) [default: first *.*sch found]'
|
description: 'The schematic file (.sch) [default: first *.*sch found]'
|
||||||
required: false
|
required: false
|
||||||
default: '__SCAN__'
|
default: '__SCAN__'
|
||||||
|
quickstart:
|
||||||
|
description: 'Scans for projects and generates configs and outputs, use YES [default: NO]'
|
||||||
|
required: false
|
||||||
|
default: 'NO'
|
||||||
skip:
|
skip:
|
||||||
description: 'Skip preflights, comma separated or "all" [default: no skip]'
|
description: 'Skip preflights, comma separated or "all" [default: no skip]'
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -47,6 +51,7 @@ runs:
|
||||||
- -d ${{ inputs.dir }}
|
- -d ${{ inputs.dir }}
|
||||||
- -b ${{ inputs.board }}
|
- -b ${{ inputs.board }}
|
||||||
- -e ${{ inputs.schema }}
|
- -e ${{ inputs.schema }}
|
||||||
|
- -q ${{ inputs.quickstart }}
|
||||||
- -s ${{ inputs.skip }}
|
- -s ${{ inputs.skip }}
|
||||||
- -t ${{ inputs.targets }}
|
- -t ${{ inputs.targets }}
|
||||||
- -v ${{ inputs.verbose }}
|
- -v ${{ inputs.verbose }}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ SKIP=""
|
||||||
DIR=""
|
DIR=""
|
||||||
VARIANT=""
|
VARIANT=""
|
||||||
TARGETS=""
|
TARGETS=""
|
||||||
|
QUICKSTART=""
|
||||||
|
|
||||||
# Exit error code
|
# Exit error code
|
||||||
EXIT_ERROR=1
|
EXIT_ERROR=1
|
||||||
|
|
@ -34,13 +35,12 @@ function msg_illegal_arg {
|
||||||
}
|
}
|
||||||
|
|
||||||
function msg_help {
|
function msg_help {
|
||||||
echo -e "Mandatory arguments:"
|
|
||||||
echo -e " -c, --config FILE .kibot.yaml config file"
|
|
||||||
|
|
||||||
echo -e "\nOptional control arguments:"
|
echo -e "\nOptional control arguments:"
|
||||||
|
echo -e " -c, --config FILE .kibot.yaml config file"
|
||||||
echo -e " -d, --dir DIR output path. Default: current dir, will be used as prefix of dir configured in config file"
|
echo -e " -d, --dir DIR output path. Default: current dir, will be used as prefix of dir configured in config file"
|
||||||
echo -e " -b, --board FILE .kicad_pcb board file. Use __SCAN__ to get the first board file found in current folder."
|
echo -e " -b, --board FILE .kicad_pcb board file. Use __SCAN__ to get the first board file found in current folder."
|
||||||
echo -e " -e, --schema FILE .sch schematic file. Use __SCAN__ to get the first schematic file found in current folder."
|
echo -e " -e, --schema FILE .sch schematic file. Use __SCAN__ to get the first schematic file found in current folder."
|
||||||
|
echo -e " -q, --quick-start YES generate configs and outputs automagically (-b, -e, -s, -V, -c are ignored)."
|
||||||
echo -e " -s, --skip Skip preflights, comma separated or 'all'"
|
echo -e " -s, --skip Skip preflights, comma separated or 'all'"
|
||||||
echo -e " -t, --targets List of targets to generate separated by spaces. To only run preflights use __NONE__."
|
echo -e " -t, --targets List of targets to generate separated by spaces. To only run preflights use __NONE__."
|
||||||
echo -e " -V, --variant Global variant"
|
echo -e " -V, --variant Global variant"
|
||||||
|
|
@ -125,6 +125,9 @@ function args_process {
|
||||||
-d | --dir) shift
|
-d | --dir) shift
|
||||||
DIR="-d $1"
|
DIR="-d $1"
|
||||||
;;
|
;;
|
||||||
|
-q | --quick-start) shift
|
||||||
|
QUICKSTART="$1"
|
||||||
|
;;
|
||||||
-s | --skip) shift
|
-s | --skip) shift
|
||||||
if [ "$1" == "__NONE__" ]; then
|
if [ "$1" == "__NONE__" ]; then
|
||||||
SKIP=""
|
SKIP=""
|
||||||
|
|
@ -163,8 +166,13 @@ function run {
|
||||||
/usr/bin/kicad-git-filters.py
|
/usr/bin/kicad-git-filters.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ QUICKSTART == "YES" ]; then
|
||||||
|
echo $DIR $VERBOSE --quick-start
|
||||||
|
kibot $DIR $VERBOSE --quick-start
|
||||||
|
else
|
||||||
echo $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
|
echo $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
|
||||||
kibot $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
|
kibot $CONFIG $DIR $BOARD $SCHEMA $SKIP $VERBOSE $VARIANT $TARGETS
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function main {
|
function main {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue