I watched these 2 and did not found where to configure pacman-mirrors. Another problem is that github actions do not work in China (my country) so I want to know which mirror is fastest and recommended
You are using a custom iso-profile - not the default Manjaro - right?
I don’t know if it will work - so my apology beforehand - for a perhaps stupid suggestion.
pacman-mirrors package is installed - but the mirrorlist is not used to install the packages.
The variable build_mirror is set in manjaro-tools.conf and defines which mirror is used for building the iso.so setting it in your profile.conf may override this value
Environment variables are applied in the sequence in which they are set.
The buildiso script will read the manjaro-tools.conf then the iso-profile.conf and therefor you can overwrite the build_mirror variable set in manjaro-tools.conf by setting it again in your profile.conf.
You can test it locally without building by using the -qv arguments.
Copy the file
cp /usr/bin/buildiso $HOME/.local/bin then edit the file and insert like below
edit the file and in the show_profile() function insert the line
msg2 "build mirror: %s" "${build_mirror}"
the run
buildiso -qv -p <your-custom-profile-name>
A few lines below ==> BUILD QUEUE: you will see the content of the build_mirror variable.