-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: use corresponding rizin branch (#75)
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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] | ||
|
||
|