An analytical solution is developed for the acoustic radiation force and torque caused by an arbitrary sound field that is incident on a compressible spheroid of any size near a planar boundary that is either rigid or pressure release. The analysis is an extension of a recent solution for a compressible sphere near a planar boundary [Simon and Hamilton, J. Acoust. Soc. Am. 153, 627-642 (2023)]. Approximations that account for a boundary formed by a two-fluid interface may be incorporated as in the previous analysis for a sphere. The present solution is based on expansions of the total acoustic pressure field in spheroidal wave functions and the use of addition theorems. Verification of the solution is accomplished by comparison with a finite element model. Examples are presented for incident fields that are either plane or spherical waves. Effects resulting from the presence of the boundary are studied by comparing the full theory with a simplified model in which multiple scattering is neglected. Numerical implementation of the proposed solution is also discussed.