Guinea pigs can get heatstroke very easily. They also get very cold. Guinea pigs which live outside should ideally be able to come inside when the temperatures exceeds this range.
Celsius: 10-30 degrees
Fahrenheit: 86-50 degrees
That range should be okay, but outside that limit you should seriously consider brininging them inside.