The temperature of an ideal gas increases in an
adiabatic expansion
isothermal expansion
adiabatic compression
isothermal compression
Temperature increases in the adiabatic compression.
This is due to the the work energy is converted to internal energy which in turn increases temperature