Skip to content

Commit

Permalink
DEbug
Browse files Browse the repository at this point in the history
  • Loading branch information
EduMenges committed Nov 12, 2024
1 parent 7c1b5ef commit 4a5eb16
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,16 @@ jobs:
submodules: "recursive"

- name: Set branch name for thirdparty download
id: tp-branch
id: branch-name
run: |
current_branch=$(git -C SuperGenius rev-parse --abbrev-ref HEAD)
if ${{github.event_name == 'pull_request'}}; then
current_branch=${{ github.event.pull_request.head.ref }}
else
current_branch=$GITHUB_REF_NAME
fi
echo "Identified current branch as ${current_branch}"
# Check if the branch exists in the thirdparty repository
if git ls-remote --heads https://github.com/GeniusVentures/thirdparty.git $current_branch | grep -q $current_branch; then
echo "Using same branch for thirdparty"
thirdparty_branch=${current_branch}
Expand All @@ -58,6 +63,7 @@ jobs:
fi
echo "THIRDPARTY_BRANCH=$thirdparty_branch" >>$GITHUB_OUTPUT
echo "SGNS_BRANCH=$current_branch" >>$GITHUB_OUTPUT
shell: bash

- name: Download thirdparty release
Expand All @@ -66,7 +72,7 @@ jobs:
mkdir thirdparty
cd thirdparty
tag_name=${{matrix.target}}-${{steps.tp-branch.outputs.THIRDPARTY_BRANCH}}-Release
tag_name=${{matrix.target}}-${{steps.branch-name.outputs.THIRDPARTY_BRANCH}}-Release
gh release download ${tag_name} --repo GeniusVentures/thirdparty -p "*-lib.tar.gz"
Expand Down Expand Up @@ -177,7 +183,7 @@ jobs:
cd ${{matrix.target}}
rm -rf !(Release) .[!.]* ..?*
cd Release
if [[ "${{matrix.target == 'Android'}}"]]; then
if ${{matrix.target == 'Android'}}; then
rm -rf !(${{matrix.abi}}) .[!.]* ..?*
cd ${{matrix.abi}}
fi
Expand All @@ -196,7 +202,7 @@ jobs:
OS_NAME=${{matrix.target}}
fi
branch_name=${GITHUB_REF#refs/heads/}
branch_name=${{steps.branch-name.outputs.SGNS_BRANCH}}
build_type=Release
file_name="${OS_NAME}-${branch_name}-${build_type}.tar.gz"
Expand Down

0 comments on commit 4a5eb16

Please sign in to comment.