General-relativistic neutrino-radiation magnetohydrodynamic simulation of seconds-long black hole-neutron star mergers