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 a1b9868 commit 5005d98
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build-targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:

- name: Set build directory
run: |
if [ '${{matrix.target}}' == 'Android' ] ; then
if ${{matrix.target == 'Android'}}; then
BUILD_DIRECTORY=build/${{matrix.target}}/${{matrix.build-type}}/${{matrix.abi}}
else
BUILD_DIRECTORY=build/${{matrix.target}}/${{matrix.build-type}}
Expand Down Expand Up @@ -151,10 +151,12 @@ jobs:
echo Detecting targets
rg 'source_dir=(.*)' -u -r '$1' -g '*-source_dirinfo.txt' .
while IFS=':' read -r file src_dir; do
if [[ ${{matrix.target == 'Windows'}} ]]; then
if ${{matrix.host == 'windows-latest'}}; then
target="${file%-source_dirinfo.txt}"
target="${target##*\}"
target="${target##*\\}"
else
target="${file%-source_dirinfo.txt}"
target="${target##*/}"
Expand Down Expand Up @@ -207,7 +209,7 @@ jobs:

- name: Build targets in POSIX hosts
working-directory: ${{env.BUILD_DIRECTORY}}
if: ${{matrix.host != 'Windows'}}
if: ${{matrix.host != 'windows-latest'}}
run: |
targets_to_update=($TARGETS_TO_UPDATE)
Expand All @@ -218,7 +220,7 @@ jobs:
- name: Build targets in Windows host
working-directory: ${{env.BUILD_DIRECTORY}}
if: ${{matrix.host == 'Windows'}}
if: ${{matrix.host == 'windows-latest'}}
run: |
$targets_to_update = $TARGETS_TO_UPDATE -split ' '
Expand Down

0 comments on commit 5005d98

Please sign in to comment.