Skip to content

Commit 27a98c3

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

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,38 @@ 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+
env:
23+
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
1024

1125
jobs:
1226
test:
1327
name: Regression Test of Infix x86_64
1428
runs-on: [ self-hosted, regression ]
1529
steps:
16-
- uses: actions/checkout@v4
30+
- name: Checkout infix repo
31+
uses: actions/checkout@v4
1732
with:
33+
repository: ${{ env.INFIX_REPO }}
34+
ref: ${{ github.ref }}
1835
clean: true
36+
fetch-depth: 0
1937
submodules: recursive
2038

2139
- name: Set Build Variables
@@ -33,9 +51,9 @@ jobs:
3351
fi
3452
echo "flv=$flavor" >> $GITHUB_OUTPUT
3553
36-
- name: Configure x86_64${{ steps.vars.outputs.flv }}
54+
- name: Configure ${{ inputs.target }}${{ steps.vars.outputs.flv }}
3755
run: |
38-
make x86_64${{ steps.vars.outputs.flv }}_defconfig
56+
make ${{ inputs.target }}${{ steps.vars.outputs.flv }}_defconfig
3957
4058
- uses: actions/download-artifact@v4
4159
with:

0 commit comments

Comments
 (0)