Cricket was part of the 1900 Olympics in Paris and has not appeared since. (It took place on 19–20 August at the Vélodrome de Vincennes and the only match of the tournament was played between teams representing Great Britain and France, and was won by 158 runs by Great Britain.)
However in 2020 Olympics there was a plan to include cricket 20-20 format but it seems that it is not part of 2020 Olympics as ICC (International Cricket Council) currently has no imminent plans to have the format included.