Skip to content

Commit d1d4c25

Browse files
committed
hack: update test.yml to support workflow call
1 parent f5fa429 commit d1d4c25

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,37 @@ name: Test Infix
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
infix_repo:
7+
description: 'Repo to checkout (for spin overrides)'
8+
required: false
9+
default: kernelkit/infix
10+
type: string
511
workflow_call:
612
inputs:
713
target:
814
required: true
915
type: string
16+
infix_repo:
17+
description: 'Repo to checkout (for spin overrides)'
18+
required: false
19+
default: kernelkit/infix
20+
type: string
21+
22+
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
1023

1124
jobs:
1225
test:
1326
name: Regression Test of Infix x86_64
1427
runs-on: [ self-hosted, regression ]
1528
steps:
16-
- uses: actions/checkout@v4
29+
- name: Checkout infix repo
30+
uses: actions/checkout@v4
1731
with:
32+
repository: ${{ env.INFIX_REPO }}
33+
ref: ${{ github.ref }}
1834
clean: true
35+
fetch-depth: 0
1936
submodules: recursive
2037

2138
- name: Set Build Variables
@@ -33,9 +50,9 @@ jobs:
3350
fi
3451
echo "flv=$flavor" >> $GITHUB_OUTPUT
3552
36-
- name: Configure x86_64${{ steps.vars.outputs.flv }}
53+
- name: Configure ${{ inputs.target }}${{ steps.vars.outputs.flv }}
3754
run: |
38-
make x86_64${{ steps.vars.outputs.flv }}_defconfig
55+
make ${{ inputs.target }}${{ steps.vars.outputs.flv }}_defconfig
3956
4057
- uses: actions/download-artifact@v4
4158
with:

0 commit comments

Comments
 (0)