1818 required : true
1919 type : string
2020 default : " CardanoTransactions,CardanoStakeDistribution,CardanoDatabase,CardanoImmutableFilesFull"
21+ release-to-test :
22+ description : " Release to test against the latest published releases"
23+ required : true
24+ type : string
25+ default : " unstable"
26+ e2e-release :
27+ description : " Release used to build the end-to-end binary"
28+ required : true
29+ type : string
30+ default : " unstable"
2131 workflow_call :
2232 inputs :
2333 total-releases :
2939 signed-entity-types :
3040 type : string
3141 default : " CardanoTransactions,CardanoStakeDistribution,CardanoDatabase,CardanoImmutableFilesFull"
42+ release-to-test :
43+ type : string
44+ default : " unstable"
45+ e2e-release :
46+ type : string
47+ default : " unstable"
3248
3349jobs :
3450 prepare-env-variables :
@@ -49,13 +65,16 @@ jobs:
4965 steps :
5066 - name : Checkout
5167 uses : actions/checkout@v4
68+ with :
69+ fetch-depth : 0
70+ fetch-tags : true
5271
5372 - name : Download releases artifacts binaries
5473 env :
5574 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5675 shell : bash
5776 run : |
58- ./.github/workflows/scripts/download-distribution-binaries.sh ${{ inputs.total-releases }}
77+ ./.github/workflows/scripts/download-distribution-binaries.sh ${{ inputs.total-releases }} ${{ inputs.release-to-test }}
5978
6079 - name : Install stable toolchain
6180 uses : dtolnay/rust-toolchain@master
6584 - name : Build e2e
6685 shell : bash
6786 run : |
87+ git checkout ${{ inputs.e2e-release }}
6888 cargo build --release --bin mithril-end-to-end
69- cp ./target/release/mithril-end-to-end ./mithril-binaries/unstable
89+ mkdir -p ./mithril-binaries/e2e-${{ inputs.e2e-release }}
90+ cp ./target/release/mithril-end-to-end ./mithril-binaries/e2e-${{ inputs.e2e-release }}
7091
7192 - name : Upload Mithril binaries
7293 uses : actions/upload-artifact@v4
@@ -107,7 +128,8 @@ jobs:
107128 shell : bash
108129 run : |
109130 mkdir -p mithril-binaries/e2e
110- cp ./mithril-binaries/unstable/* ./mithril-binaries/e2e
131+ cp ./mithril-binaries/e2e-${{ inputs.e2e-release }}/* ./mithril-binaries/e2e
132+ cp ./mithril-binaries/${{ inputs.release-to-test }}/* ./mithril-binaries/e2e
111133 cp --remove-destination ./mithril-binaries/${{ matrix.tag }}/${{ matrix.node }} ./mithril-binaries/e2e/
112134
113135 chmod +x ./mithril-binaries/e2e/mithril-aggregator
@@ -151,9 +173,9 @@ jobs:
151173 if : success() || failure()
152174 shell : bash
153175 run : |
154- AGGREGATOR_TAG="unstable "
155- SIGNER_TAG="unstable "
156- CLIENT_TAG="unstable "
176+ AGGREGATOR_TAG="${{ inputs.release-to-test }} "
177+ SIGNER_TAG="${{ inputs.release-to-test }} "
178+ CLIENT_TAG="${{ inputs.release-to-test }} "
157179
158180 case "$NODE" in
159181 mithril-aggregator)
@@ -224,7 +246,7 @@ jobs:
224246 echo "## Distributions backward compatibility" >> $GITHUB_STEP_SUMMARY
225247 echo "" >> $GITHUB_STEP_SUMMARY
226248
227- echo "This is the compatibility report of previous distributions nodes with the current unstable nodes ." >> $GITHUB_STEP_SUMMARY
249+ echo "This is the compatibility report of the latest distributions against **'${{ inputs.release-to-test }}'** ." >> $GITHUB_STEP_SUMMARY
228250 echo "" >> $GITHUB_STEP_SUMMARY
229251
230252 echo "**Signed entity types**: ${{ inputs.signed-entity-types }}" >> $GITHUB_STEP_SUMMARY
0 commit comments