diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index b20dd5ba..a9622202 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -149,11 +149,20 @@ jobs: declare -A target_shas declare -A target_build_directories + echo Detecting targets + while IFS=':' read -r file src_dir; do - target="${file%-source_dirinfo.txt}" - target="${target##*/}" + if [[ ${{matrix.target == 'Windows'}} ]]; then + target="${file%-source_dirinfo.txt}" + target="${target##*\}" + else + target="${file%-source_dirinfo.txt}" + target="${target##*/}" + fi + + echo $target $src_dir - sha=$(git -C "$src_dir" rev-parse HEAD) + sha=$(git -C "${src_dir}" rev-parse HEAD) target_shas[$target]=$sha build_directory="${file%%*/}"