@@ -135,7 +135,7 @@ jobs:
135
135
strategy :
136
136
matrix :
137
137
# TODO generalize
138
- arch : [x86_64-linux, x86_64-darwin, aarch64-darwin, aarch64-linux]
138
+ arch : [x86_64-linux, x86_64-darwin, aarch64-darwin, aarch64-linux, win64 ]
139
139
name : " Download Asset"
140
140
runs-on : ubuntu-latest
141
141
steps :
@@ -164,6 +164,9 @@ jobs:
164
164
"aarch64-linux")
165
165
derivation+="x86_64-linux.ghc966-aarch64-unknown-linux-musl"
166
166
;;
167
+ "win64")
168
+ derivation+="x86_64-linux.ghc966-x86_64-w64-mingw32"
169
+ ;;
167
170
*)
168
171
echo "Unexpected matrix.arch value: ${{ matrix.arch }}"
169
172
exit 1
@@ -172,7 +175,14 @@ jobs:
172
175
derivation+=".packages.cardano-cli:exe:cardano-cli"
173
176
nix build --builders "" --max-jobs 0 ${{ env.LOCKED_URL }}#$derivation
174
177
tree result
175
- cp result/bin/cardano-cli cardano-cli-${{ matrix.arch }} # (1)
178
+ case ${{ matrix.arch }} in
179
+ "win64")
180
+ cp --dereference -r result/bin/ cardano-cli-win64
181
+ ;;
182
+ *)
183
+ cp result/bin/cardano-cli cardano-cli-${{ matrix.arch }} # (1)
184
+ ;;
185
+ esac
176
186
- uses : actions/upload-artifact@v4
177
187
with :
178
188
name : cardano-cli-${{ matrix.arch }}
@@ -198,13 +208,14 @@ jobs:
198
208
tar -czf ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-$arch.tar.gz cardano-cli-$arch
199
209
done
200
210
# TODO generalize
201
- # zip ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-win64.zip cardano-cli-win64
211
+ zip ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-win64.zip cardano-cli-win64
202
212
- name : Checksums
203
213
run : |
204
214
# (3)
205
215
for arch in x86_64-linux x86_64-darwin aarch64-darwin aarch64-linux; do
206
216
sha256sum ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-$arch.tar.gz >> ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-sha256sums.txt
207
217
done
218
+ sha256sum ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-win64.zip >> ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-sha256sums.txt
208
219
- name : Create short tag
209
220
run : |
210
221
# Transform the long tag (e.g. "cardano-cli-8.22.0.0")
@@ -230,5 +241,6 @@ jobs:
230
241
${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-x86_64-darwin.tar.gz
231
242
${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-aarch64-darwin.tar.gz
232
243
${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-aarch64-linux.tar.gz
244
+ ${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-win64.zip
233
245
${{ needs.wait_for_hydra.outputs.TARGET_TAG }}-sha256sums.txt
234
246
body_path : RELEASE_CHANGELOG.md
0 commit comments