The maps $g_1,g_3$ are linear, while $g_2$ is affine and it is linear if and only if $(s,\mathbf{s})=(0,0)$. Since you talk only about $g_1$, I’ll explain in detail why.
The quick proof, is actually just an application of a few standard linear algebra theorems. The first component of $g_1$ is $t$, i.e $\pi_1\circ g_1=\pi_1$, and the latter is a linear map. Next, we have $\pi_2\circ g_1= \pi_2+\mathbf{v}\pi_1$, which is a sum of linear maps, hence linear, so we’re done. Anyway, if in doubt, just go back to definitions:
\begin{align}
g_1\left(c\cdot(t,\mathbf{x})\right)&=g_1\left(ct,c\mathbf{x}\right)=(ct,c\mathbf{x}+\mathbf{v}(ct))=c(t,\mathbf{x}+\mathbf{v}t)=c\cdot g_1(t,\mathbf{x}),
\end{align}
so this proves homogeneity of $g_1$. Next, we can prove additivity of $g_1$:
\begin{align}
g_1\left((t,\mathbf{x})+(s,\mathbf{y})\right)&=g_1\left(t+s,\mathbf{x}+\mathbf{y}\right)\\
&=(t+s,(\mathbf{x}+\mathbf{y})+\mathbf{v}(t+s))\\
&=(t,\mathbf{x}+\mathbf{v}t)+(s,\mathbf{y}+\mathbf{v}s)\\
&=g_1(t,\mathbf{x})+g_1(s,\mathbf{y}).
\end{align}
Thus, $g_1$ is linear. If you want to define things at the level of the affine spaces, then you can say that a Galilean boost with velocity $\mathbf{v}\in\Bbb{R}^3$ is a map $f_1:\Bbb{E}^1\times\Bbb{E}^3\to\Bbb{E}^1\times\Bbb{E}^3$ for which there exist $\mathbf{v}\in\Bbb{R}^3$ and $t_0\in\Bbb{E}^1$ such that for all $(t,p)\in\Bbb{E}^1\times\Bbb{E}^3$, we have $f_1\left(t,p\right)=(t,p+\mathbf{v}(t-t_0))$.
Now, take two events $a,b\in A=\Bbb{E}^1\times\Bbb{E}^3$ which are simultaneous. So, we can write them in the form $a=(t,p)$ and $b=(t,q)$ for some $t\in\Bbb{E}^1$ (the same in both tuples due to simultaneity) and $p,q\in\Bbb{E}^3$. So, the distance between $a$ and $b$ is $d(a,b)=\|p-q\|$. Next, we have $f_1(a)-f_1(b)=(0,p-q)$ meaning that $f_1(a)$ and $f_1(b)$ are simultaneous events (clear from the definitions, but I just wanted to emphasize this) and the distance between these events is $\|p-q\|$, thus proving that $f_1$ is a distance-preserving map between simultaneous events.
Honestly, at this stage, you don’t even need to go back to the affine spaces. If you want to work with the $g_i$’s, then just keep your domain and target as vector spaces. The map $g_1$ is linear, and it restricts to a map $\{t\}\times\Bbb{R}^3 \to \{t\}\times\Bbb{R}^3$ (the fiber of events at time $t$) where it is simply a translation by amount $\mathbf{v}t$, and translations obviously preserve distances.