I'd recommend installing them from MSYS2 instead, and use
msys2/setup-msys2@v2
action to get it into the PATH.