We generalize the recently introduced TRILEX approach (TRiply Irreducible Local EXpansion) to superconducting phases. The method treats simultaneously Mott and spin-fluctuation physics using an Eliashberg theory supplemented by local vertex corrections determined by a self-consistent quantum impurity model. We show that, in the two-dimensional Hubbard model, at strong coupling, TRILEX yields a d-wave superconducting dome as a function of doping. Contrary to the standard cluster dynamical mean field theory (DMFT) approaches, TRILEX can capture d-wave pairing using only a single-site effective impurity model. We also systematically explore the dependence of the superconducting temperature on the bare dispersion at weak coupling, which shows a clear link between strong antiferromagnetic (AF) correlations and the onset of superconductivity. We identify a combination of hopping amplitudes particularly favorable to superconductivity at intermediate doping. Finally, we study within GW +EDMFT the low-temperature d-wave superconducting phase at strong coupling in a region of parameter space with reduced AF fluctuations.Strongly-correlated electrons systems such as hightemperature superconductors pose a difficult challenge to condensed-matter theory.One class of theoretical approaches for this problem focuses on the effect of long-range spin-fluctuations 1-6 . They neglect vertex corrections in an Eliashberg-like approximation for the electronic self-energy and predict a d-wave superconducting order.Another class of approaches focuses, following the seminal work of Anderson 7 , on the fact that hightemperature superconductors are doped Mott insulators. In the recent years, progress has been made in this direction with cluster extensions 8-12 of dynamical mean field theory (DMFT)13 . These methods have been shown to capture the essential aspects of cuprate physics, such as Mott insulating, pseudogap and d-wave superconducting phases . Cluster DMFT methods can be converged with respect to the cluster size at relatively high temperature 41,42 , including in the pseudogap region 43 , but not at lower temperatures and in particular in the superconducting phase.Several approaches beyond cluster DMFT have been proposed recently [44][45][46][47][48][49][50][51][52][53][54][55][56][57][58][59][60][61][62] . In Refs 63 and 64, the Triply Irreducible Local Expansion (TRILEX) approach was introduced. It consists in a local approximation of the electron-boson vertex extracted from a quantum impurity model with a self-consistently determined bath and interaction, in the spirit of DMFT. TRILEX interpolates between DMFT at strong interaction and the weakcoupling Eliashberg-like spin-fluctuation approximation at weak interaction. It is able to simultaneously describe Mott physics and the effect of long-range bosonic fluctuations. Hence, it unifies the two theoretical approaches mentioned above in the same formalism.The main purpose of this paper is to study d-wave superconductivity in the Hubbard model within the singlesite TRILEX approa...