  Measurements of electroweak-bosons in heavy-ion collisions with ALICE are
reported. They are measured at large rapidities, via their (di)muonic decay: Z
$\rightarrow \mu^+ \mu^-$ and W$^\pm \rightarrow \mu^\pm \nu$. The Z production
and nuclear modification factor in Pb--Pb collisions at $\sqrt{s_{_{\rm NN}}}$
= 5.02 TeV are presented and compared to theoretical predictions with or
without nuclear modifications of the Parton Distribution Functions.
Measurements of electroweak-boson production in p--Pb collisions at
$\sqrt{s_{_{\rm NN}}}$ = 5.02 and 8.16 TeV are also presented and discussed.
