Skip to content

Commit

Permalink
Fix: Tries to fetch branch with the same name on thirdparty and Super…
Browse files Browse the repository at this point in the history
…Genius on yml
  • Loading branch information
henriqueaklein committed Oct 24, 2024
1 parent fc775ae commit feab240
Showing 1 changed file with 98 additions and 18 deletions.
116 changes: 98 additions & 18 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,38 @@ jobs:
with:
path: 'GeniusSDK'
submodules: "recursive"

- name: Check if branch exists in SuperGenius
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/SuperGenius'
branch: ${{ steps.branch-name.outputs.current_branch }}


- name: Checkout SuperGenius repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/SuperGenius'
path: 'SuperGenius'
submodules: "recursive"
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}

- name: Check if branch exists in thirdparty
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/thirdparty'
branch: ${{ steps.branch-name.outputs.current_branch }}

- name: Check out thirdparty repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}


- name: Thirdparty Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/thirdparty/build/Windows/Release
Expand Down Expand Up @@ -185,21 +201,37 @@ jobs:
path: 'GeniusSDK'
submodules: "recursive"

- name: Check out SuperGenius repository
- name: Check if branch exists in SuperGenius
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/SuperGenius'
branch: ${{ steps.branch-name.outputs.current_branch }}


- name: Checkout SuperGenius repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/SuperGenius'
path: 'SuperGenius'
submodules: "recursive"
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}

- name: Check if branch exists in thirdparty
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/thirdparty'
branch: ${{ steps.branch-name.outputs.current_branch }}

- name: Check out thirdparty repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}


- name: Thirdparty Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/thirdparty/build/Linux/Release
Expand Down Expand Up @@ -334,21 +366,37 @@ jobs:
run: |
rustup target add aarch64-linux-android
- name: Checkout thirdparty repository
uses: actions/checkout@v3
- name: Check if branch exists in SuperGenius
id: check_branch
uses: tj-actions/branch-names@v6
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: develop
repo: 'GeniusVentures/SuperGenius'
branch: ${{ steps.branch-name.outputs.current_branch }}


- name: Checkout SuperGenius repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/SuperGenius'
path: 'SuperGenius'
submodules: "recursive"
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}

- name: Check if branch exists in thirdparty
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/thirdparty'
branch: ${{ steps.branch-name.outputs.current_branch }}

- name: Check out thirdparty repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}


- name: Thirdparty Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/thirdparty/build/Android/Release/arm64-v8a
Expand Down Expand Up @@ -510,21 +558,37 @@ jobs:
- name: Add Darwin rust toolchain
run: rustup target add x86_64-apple-darwin

- name: Check if branch exists in SuperGenius
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/SuperGenius'
branch: ${{ steps.branch-name.outputs.current_branch }}


- name: Checkout SuperGenius repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/SuperGenius'
path: 'SuperGenius'
submodules: 'recursive'
ref: develop
submodules: "recursive"
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}

- name: Check if branch exists in thirdparty
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/thirdparty'
branch: ${{ steps.branch-name.outputs.current_branch }}

- name: Check out thirdparty repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}


- name: Thirdparty Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/thirdparty/build/OSX/Release
Expand Down Expand Up @@ -652,21 +716,37 @@ jobs:
rustup component add rust-src --toolchain nightly-aarch64-apple-darwin
rustup target add aarch64-apple-ios
- name: Check if branch exists in SuperGenius
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/SuperGenius'
branch: ${{ steps.branch-name.outputs.current_branch }}


- name: Checkout SuperGenius repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/SuperGenius'
path: 'SuperGenius'
submodules: 'recursive'
ref: develop
submodules: "recursive"
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}

- name: Check if branch exists in thirdparty
id: check_branch
uses: tj-actions/branch-names@v6
with:
repo: 'GeniusVentures/thirdparty'
branch: ${{ steps.branch-name.outputs.current_branch }}

- name: Check out thirdparty repository
uses: actions/checkout@v3
with:
repository: 'GeniusVentures/thirdparty'
path: 'thirdparty'
submodules: 'recursive'
ref: develop
ref: ${{ steps.check_branch_first_repo.outputs.branch_exists == 'true' && steps.branch-name.outputs.current_branch || 'develop' }}


- name: Thirdparty Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/thirdparty/build/iOS/Release
Expand Down

0 comments on commit feab240

Please sign in to comment.