Skip to content

Commit f675aef

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

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,26 @@ on:
77
target:
88
required: true
99
type: string
10+
infix_repo:
11+
description: 'Repo to checkout (for spin overrides)'
12+
required: false
13+
default: kernelkit/infix
14+
type: string
15+
16+
INFIX_REPO: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
1017

1118
jobs:
1219
test:
1320
name: Regression Test of Infix x86_64
1421
runs-on: [ self-hosted, regression ]
1522
steps:
16-
- uses: actions/checkout@v4
23+
- name: Checkout infix repo
24+
uses: actions/checkout@v4
1725
with:
26+
repository: ${{ env.INFIX_REPO }}
27+
ref: ${{ github.ref }}
1828
clean: true
29+
fetch-depth: 0
1930
submodules: recursive
2031

2132
- name: Set Build Variables
@@ -33,9 +44,9 @@ jobs:
3344
fi
3445
echo "flv=$flavor" >> $GITHUB_OUTPUT
3546
36-
- name: Configure x86_64${{ steps.vars.outputs.flv }}
47+
- name: Configure ${{ inputs.target }}${{ steps.vars.outputs.flv }}
3748
run: |
38-
make x86_64${{ steps.vars.outputs.flv }}_defconfig
49+
make ${{ inputs.target }}${{ steps.vars.outputs.flv }}_defconfig
3950
4051
- uses: actions/download-artifact@v4
4152
with:

0 commit comments

Comments
 (0)