Skip to content

Commit

Permalink
Fix binaries flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MSECode committed Dec 27, 2023
1 parent c8d38bc commit 4564ae2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,14 @@ jobs:
start_img=""
source_img=""
sources_args=""
binaries_args=""
tag_arg=""
sources_flag=false
binaries_flag=false
tag_flag=false
tag_github_flag=false
compile_sources=false
compile_binaries=false
demos_matrix=""
demos_flag=false
demos_flag_output=false
Expand Down Expand Up @@ -275,6 +278,14 @@ jobs:
compile_sources=true
demos_flag=false
fi
if [ "$line" == "[binaries]" ]
then
sources_flag=false
binaries_flag=true
tag_flag=false
compile_binaries=false
demos_flag=false
fi
if [ "$line" == "[tag]" ]
then
sources_flag=false
Expand Down Expand Up @@ -307,12 +318,16 @@ jobs:
tag_flag=false
demos_flag=true
fi
if [ "$line" != "[sources]" ] && [ "$line" != "[tag]" ] && [ "$line" != "[superbuild]" ] && [ "$line" != "[children]" ] && [ "$line" != "[demos]" ] && [ "$line" != "" ]
if [ "$line" != "[sources]" ] && [ "$line" != "[binaries]" ] && [ "$line" != "[tag]" ] && [ "$line" != "[superbuild]" ] && [ "$line" != "[children]" ] && [ "$line" != "[demos]" ] && [ "$line" != "" ]
then
if [[ $sources_flag != false ]]
then
sources_args="$sources_args --build-arg \"$line\""
fi
if [[ $binaries_flag != false ]]
then
binaries_args=""
fi
if [[ $tag_flag != false ]]
then
tag_arg="--tag ${{env.DEFAULT_USER}}/\"$line"
Expand Down

0 comments on commit 4564ae2

Please sign in to comment.