18
18
required : true
19
19
type : string
20
20
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"
21
31
workflow_call :
22
32
inputs :
23
33
total-releases :
29
39
signed-entity-types :
30
40
type : string
31
41
default : " CardanoTransactions,CardanoStakeDistribution,CardanoDatabase,CardanoImmutableFilesFull"
42
+ release-to-test :
43
+ type : string
44
+ default : " unstable"
45
+ e2e-release :
46
+ type : string
47
+ default : " unstable"
32
48
33
49
jobs :
34
50
prepare-env-variables :
@@ -49,13 +65,16 @@ jobs:
49
65
steps :
50
66
- name : Checkout
51
67
uses : actions/checkout@v4
68
+ with :
69
+ fetch-depth : 0
70
+ fetch-tags : true
52
71
53
72
- name : Download releases artifacts binaries
54
73
env :
55
74
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
75
shell : bash
57
76
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 }}
59
78
60
79
- name : Install stable toolchain
61
80
uses : dtolnay/rust-toolchain@master
65
84
- name : Build e2e
66
85
shell : bash
67
86
run : |
87
+ git checkout ${{ inputs.e2e-release }}
68
88
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 }}
70
91
71
92
- name : Upload Mithril binaries
72
93
uses : actions/upload-artifact@v4
@@ -107,7 +128,8 @@ jobs:
107
128
shell : bash
108
129
run : |
109
130
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
111
133
cp --remove-destination ./mithril-binaries/${{ matrix.tag }}/${{ matrix.node }} ./mithril-binaries/e2e/
112
134
113
135
chmod +x ./mithril-binaries/e2e/mithril-aggregator
@@ -151,9 +173,9 @@ jobs:
151
173
if : success() || failure()
152
174
shell : bash
153
175
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 }} "
157
179
158
180
case "$NODE" in
159
181
mithril-aggregator)
@@ -224,7 +246,7 @@ jobs:
224
246
echo "## Distributions backward compatibility" >> $GITHUB_STEP_SUMMARY
225
247
echo "" >> $GITHUB_STEP_SUMMARY
226
248
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
228
250
echo "" >> $GITHUB_STEP_SUMMARY
229
251
230
252
echo "**Signed entity types**: ${{ inputs.signed-entity-types }}" >> $GITHUB_STEP_SUMMARY
0 commit comments