1111 description : ' The build matrix'
1212 required : true
1313 type : string
14- flavour :
15- description : ' The flavour to build (Examples: base, mods, prod or work).'
14+ stage :
15+ description : ' The stage to build (Examples: base, mods, prod or work).'
1616 required : true
1717 type : string
18- flavour_prev :
19- description : ' The previous flavour (used for downloading previous artifact).'
18+ stage_prev :
19+ description : ' The previous stage (used for downloading previous artifact).'
2020 required : true
2121 type : string
2222 artifact_prefix :
4141 # JOB: BUILD
4242 # -----------------------------------------------------------------------------------------------
4343 build :
44- name : ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.flavour }} (${{ matrix.arch }}) ${{ matrix.refs }}
44+ name : ${{ matrix.name }}-${{ matrix.version }}-${{ inputs.stage }} (${{ matrix.arch }}) ${{ matrix.refs }}
4545 runs-on : ubuntu-latest
4646 strategy :
4747 fail-fast : false
7878 VERSION="${{ matrix.version }}"
7979 ARCH="$( echo "${{ matrix.arch }}" | sed 's|/|-|g' )"
8080
81- NAME_PREV="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.flavour_prev }}"
82- NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.flavour }}"
81+ NAME_PREV="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage_prev }}"
82+ NAME_CURR="${{ inputs.artifact_prefix }}-${PRE_HASH}-${VERSION}-${ARCH}-${{ inputs.stage }}"
8383 echo "::set-output name=prev::${NAME_PREV}"
8484 echo "::set-output name=curr::${NAME_CURR}"
8585
@@ -99,14 +99,14 @@ jobs:
9999 name: ${{ steps.set-artifact-name.outputs.prev }}
100100 attempt_limit : 20
101101 attempt_delay : 10000
102- if : ${{ inputs.flavour_prev != '' }}
102+ if : ${{ inputs.stage_prev != '' }}
103103
104104 - name : " [Artifact Load] Import previously built image"
105105106106 with :
107107 command : |
108108 make load INFILE=${{ steps.set-artifact-name.outputs.prev }}
109- if : ${{ inputs.flavour_prev != '' }}
109+ if : ${{ inputs.stage_prev != '' }}
110110
111111
112112 # ------------------------------------------------------------
@@ -116,7 +116,7 @@ jobs:
116116117117 with :
118118 command : |
119- make build VERSION=${{ matrix.version }} FLAVOUR =${{ inputs.flavour }} ARCH=${{ matrix.arch }}
119+ make build VERSION=${{ matrix.version }} STAGE =${{ inputs.stage }} FLAVOUR=${{ matrix .flavour }} ARCH=${{ matrix.arch }}
120120
121121
122122 # ------------------------------------------------------------
@@ -126,7 +126,7 @@ jobs:
126126127127 with :
128128 command : |
129- make test VERSION=${{ matrix.version }} FLAVOUR =${{ inputs.flavour }} ARCH=${{ matrix.arch }}
129+ make test VERSION=${{ matrix.version }} STAGE =${{ inputs.stage }} FLAVOUR=${{ matrix .flavour }} ARCH=${{ matrix.arch }}
130130 if : ${{ inputs.run_tests }}
131131
132132
@@ -141,7 +141,7 @@ jobs:
141141142142 with :
143143 command : |
144- make save-verify VERSION=${{ matrix.version }} FLAVOUR =${{ inputs.flavour }} ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.curr }} INFILE=${{ steps.set-artifact-name.outputs.curr }}
144+ make save-verify VERSION=${{ matrix.version }} STAGE =${{ inputs.stage }} FLAVOUR=${{ matrix .flavour }} ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.curr }} INFILE=${{ steps.set-artifact-name.outputs.curr }}
145145 if : ${{ inputs.upload_artifact }}
146146
147147 # ##
0 commit comments