I would greatly appreciate any help with the following problem. If there are existing references related to this, kindly provide them. If not, any help in this matter would be highly valued.
Problem: Let the profinite group $G$ be the inverse limit of the family of finite groups $\{G_i:i\in \mathcal{I}\}$, i.e., $G=\varprojlim G_i$. Let $C(X)$ denote the space of continuous complex-valued functions on $X$. Is it valid to conclude that $C(G)$ is the direct limit of $\{C(G_i):i\in \mathcal{I}\}$, i.e., $C(G)=\varinjlim C(G_i)$?