just spend time alone. you dont have to ask him out, maybe alone time will make up yours or his mind. he might even ask you.
if in the conversation it comes up you liking him say ya without regrets
sometimes friendship is better knowing sometimes its worse
as an example I had this guy best friend that I was hung over heels for for a very long time. I told him I liked him that he was hot and at first he said eww but then he would always pick on me (flirt) and write me notes in class
he knew I liked him, but we never dated or did anything together
we were still best friends but could flirt and write notes to each other all the time
once I asked him if why do you write me so many notes? and he replied "because I dont like you" which I knew meant he did, he just cared about what the whole school would think if we were together (which was middle school drama anyways so it didnt really matter)
i was just glad he would flirt with me and talk to me, it made our friendship funner and better telling him I liked him and I knew by his actions he did too
a relationship didnt matter all that mattered was how good the friendship was