Skip to content

Commit

Permalink
ci: use corresponding rizin branch (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka authored Dec 21, 2024
1 parent eecc6bb commit 4e32480
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
workflow_dispatch:
workflow_call:
inputs:
external_call:
description: 'To distinguish workflow_call from regular push'
type: boolean
required: false
default: true
rizin_ref:
required: false
type: string
Expand All @@ -26,13 +31,31 @@ jobs:
- name: Checkout rz-bindgen
uses: actions/checkout@v4

# runned only from workflow_call
- name: Checkout rizin
if: ${{ inputs.external_call }}
uses: actions/checkout@v4
with:
repository: rizinorg/rizin
path: rizin
ref: ${{ inputs.rizin_ref }}

- name: Checkout rizin (stable)
if: ${{ !inputs.external_call && ((github.ref_name == 'stable') || (github.base_ref == 'stable')) }}
uses: actions/checkout@v4
with:
repository: rizinorg/rizin
path: rizin
ref: stable

- name: Checkout rizin (dev)
if: ${{ !inputs.external_call && ((github.ref_name != 'stable') && (github.base_ref != 'stable')) }}
uses: actions/checkout@v4
with:
repository: rizinorg/rizin
path: rizin
ref: dev

- name: Build rz-bindgen
uses: pypa/[email protected]

Expand Down

0 comments on commit 4e32480

Please sign in to comment.