How to walk away from someone you love?

I need to walk away from my boyfriend. I do love him and i talked to him many times and yet nothing has changed and i am tired.
He is not giving me the attention i deserve. Last time we went on a real date was 5 months ago, and all other times we see each other is when i pass by his work on his break. Maximum an hour of i get lucky
We did speak about future and how is he thinking about me seriously in spending the rest of our lives together
But its all words and i don't see any actions of his care or presence.
I know nothing will change and i gave up on him i just Don't have the guts to leave him but i really need to i am always down and worried and sad
But i love him a lot
HELP?
How to walk away from someone you love?
Post Opinion