@@ -2,20 +2,46 @@ name: Test Infix
22
33on :
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
11+
512 workflow_call :
613 inputs :
714 target :
815 required : true
916 type : string
17+ name :
18+ required : true
19+ type : string
20+ flavor :
21+ required : false
22+ type : string
23+ default : ' '
24+ infix_repo :
25+ required : false
26+ type : string
27+ default : kernelkit/infix
28+
29+ env :
30+ FLV : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.flavor || inputs.flavor }}
31+ INFIX_REPO : ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.infix_repo || inputs.infix_repo }}
1032
1133jobs :
1234 test :
13- name : Regression Test of Infix x86_64
35+ name : Regression Test ${{ inputs.name }} ${{ inputs.target }}
1436 runs-on : [ self-hosted, regression ]
1537 steps :
16- - uses : actions/checkout@v4
38+ - name : Checkout infix repo
39+ uses : actions/checkout@v4
1740 with :
41+ repository : ${{ env.INFIX_REPO }}
42+ ref : ${{ github.ref }}
1843 clean : true
44+ fetch-depth : 0
1945 submodules : recursive
2046
2147 - name : Set Build Variables
@@ -26,16 +52,11 @@ jobs:
2652 >>$GITHUB_ENV
2753 fi
2854
29- if [ "$GITHUB_REF_NAME" != "main" ]; then
30- flavor="_minimal"
31- else
32- flavor=""
33- fi
34- echo "flv=$flavor" >> $GITHUB_OUTPUT
55+ echo "flv=$FLV" >> $GITHUB_OUTPUT
3556
36- - name : Configure x86_64 ${{ steps.vars.outputs.flv }}
57+ - name : Configure ${{ inputs.target }} ${{ steps.vars.outputs.flv }}
3758 run : |
38- make x86_64 ${{ steps.vars.outputs.flv }}_defconfig
59+ make ${{ inputs.target }} ${{ steps.vars.outputs.flv }}_defconfig
3960
4061 - uses : actions/download-artifact@v4
4162 with :
@@ -44,12 +65,15 @@ jobs:
4465
4566 - name : Restore x86-64${{ steps.vars.outputs.flv }} output/
4667 run : |
68+ target=${{ inputs.target }}
69+ name=${{ inputs.name }}
70+
4771 ls -l
4872 mkdir -p output
49- mv infix-x86_64 .tar.gz output/
73+ mv ${name}-${target} .tar.gz output/
5074 cd output/
51- tar xf infix-x86_64 .tar.gz
52- ln -s infix-x86_64 images
75+ tar xf ${name}-${target} .tar.gz
76+ ln -s ${name}-${target} images
5377
5478 - name : Regression Test x86_64${{ steps.vars.outputs.flv }}
5579 run : |
0 commit comments