From 9595ba6fd46a43e5274569786acedf361a802f20 Mon Sep 17 00:00:00 2001 From: Eduardo Menges Mattje Date: Mon, 11 Nov 2024 18:31:38 -0300 Subject: [PATCH] Fix --- .github/workflows/build-targets.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-targets.yml b/.github/workflows/build-targets.yml index f0d3e9df..5816593e 100644 --- a/.github/workflows/build-targets.yml +++ b/.github/workflows/build-targets.yml @@ -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}}' @@ -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%%*/}" @@ -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