Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Nov 11, 2024
1 parent bdfb0eb commit 9595ba6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
if: ${{ matrix.target == 'Linux' }}
run: cmake -S build/${{matrix.target}} -B $BUILD_DIRECTORY -DCMAKE_BUILD_TYPE=${{matrix.build-type}}

- name: Creating release tag
- name: Create release tag
id: create-release-tag
run: |
RELEASE_TAG='${{matrix.target}}-${{ github.ref_name }}-${{matrix.build-type}}'
Expand Down Expand Up @@ -149,22 +149,23 @@ jobs:
declare -A target_shas
declare -A target_build_directories
echo Detecting targets
rg 'source_dir=(.*)' -u -r '$1' -g '*-source_dirinfo.txt' .
echo Detecting targets:
while IFS=':' read -r file src_dir; do
if ${{matrix.host == 'windows-latest'}}; then
target="${file%-source_dirinfo.txt}"
target="${target##*\\}"
src_dir="${src_dir#D:}"
src_dir="/d${src_dir}"
else
target="${file%-source_dirinfo.txt}"
target="${target##*/}"
fi
echo $target $src_dir
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%%*/}"
Expand Down Expand Up @@ -215,7 +216,8 @@ jobs:
for target in "${up_to_date_targets[@]}"; do
compressed_target="${target}-lib.tar.gz"
echo Downloading ${compressed_target}
gh release download ${RELEASE_TAG} --pattern "${COMPRESSED_TARGET}" --clobber
gh release download ${RELEASE_TAG} --pattern "${compressed_target}" --clobber
tar -xvzf ${compressed_target}
done
shell: bash

Expand Down

0 comments on commit 9595ba6

Please sign in to comment.