[SPARK-32695][INFRA] Explicitly cache and hash 'build' directly in GitHub Actions
[SPARK-32695][INFRA] Explicitly cache and hash 'build' directly in GitHub Actions

### What changes were proposed in this pull request?

This PR proposes to explicitly cache and hash the files/directories under 'build' for SBT and Zinc at GitHub Actions. Otherwise, it can end up with overwriting `build` directory. See also https://github.com/apache/spark/pull/29286#issuecomment-679368436

Previously, other files like `build/mvn` and `build/sbt` are also cached and overwritten. So, when you have some changes there, they are ignored.

### Why are the changes needed?

To make GitHub Actions build stable.

### Does this PR introduce _any_ user-facing change?

No, dev-only.

### How was this patch tested?

The builds in this PR test it out.

Closes #29536 from HyukjinKwon/SPARK-32695.

Authored-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>
Signed-off-by: HyukjinKwon <2680965ad5aae29275c8fb10150cb10f5554e78b@apache.org>

apache/spark,chuckchen/spark,chuckchen/spark,mahak/spark,JoshRosen/spark,ptkool/spark,cloud-fan/spark,nchammas/spark,JoshRosen/spark,BryanCutler/spark,milliman/spark,gengliangwang/spark,zero323/spark,witgo/spark,jiangxb1987/spark,JoshRosen/spark,taroplus/spark,wangyum/spark,taroplus/spark,holdenk/spark,wzhfy/spark,rednaxelafx/apache-spark,nchammas/spark,milliman/spark,xuanyuanking/spark,milliman/spark,chuckchen/spark,mahak/spark,HyukjinKwon/spark,zzcclp/spark,zzcclp/spark,mahak/spark,HyukjinKwon/spark,JoshRosen/spark,shaneknapp/spark,milliman/spark,ueshin/apache-spark,zzcclp/spark,gengliangwang/spark,gengliangwang/spark,apache/spark,hvanhovell/spark,vinodkc/spark,shaneknapp/spark,srowen/spark,mahak/spark,hvanhovell/spark,shuangshuangwang/spark,mahak/spark,nchammas/spark,dongjoon-hyun/spark,shaneknapp/spark,wangmiao1981/spark,taroplus/spark,srowen/spark,rednaxelafx/apache-spark,holdenk/spark,milliman/spark,witgo/spark,rednaxelafx/apache-spark,wangyum/spark,BryanCutler/spark,taroplus/spark,maropu/spark,cloud-fan/spark,dongjoon-hyun/spark,HyukjinKwon/spark,taroplus/spark,jiangxb1987/spark,wangyum/spark,xuanyuanking/spark,witgo/spark,maropu/spark,nchammas/spark,gengliangwang/spark,cloud-fan/spark,xuanyuanking/spark,gengliangwang/spark,shuangshuangwang/spark,HyukjinKwon/spark,jiangxb1987/spark,vinodkc/spark,maropu/spark,wzhfy/spark,vinodkc/spark,chuckchen/spark,xuanyuanking/spark,BryanCutler/spark,ptkool/spark,cloud-fan/spark,nchammas/spark,zzcclp/spark,apache/spark,holdenk/spark,ueshin/apache-spark,ptkool/spark,WeichenXu123/spark,srowen/spark,shaneknapp/spark,ptkool/spark,cloud-fan/spark,ueshin/apache-spark,holdenk/spark,zzcclp/spark,wangyum/spark,hvanhovell/spark,srowen/spark,shuangshuangwang/spark,wangyum/spark,JoshRosen/spark,apache/spark,shaneknapp/spark,wangmiao1981/spark,zero323/spark,milliman/spark,srowen/spark,BryanCutler/spark,zero323/spark,BryanCutler/spark,xuanyuanking/spark,rednaxelafx/apache-spark,WeichenXu123/spark,chuckchen/spark,WeichenXu123/spark,taroplus/spark,vinodkc/spark,zzcclp/spark,apache/spark,wzhfy/spark,mahak/spark,srowen/spark,JoshRosen/spark,taroplus/spark,ueshin/apache-spark,wzhfy/spark,ueshin/apache-spark,witgo/spark,nchammas/spark,BryanCutler/spark,zero323/spark,holdenk/spark,holdenk/spark,hvanhovell/spark,dongjoon-hyun/spark,BryanCutler/spark,gengliangwang/spark,cloud-fan/spark,hvanhovell/spark,shuangshuangwang/spark,rednaxelafx/apache-spark,maropu/spark,shuangshuangwang/spark,dongjoon-hyun/spark,rednaxelafx/apache-spark,mahak/spark,ptkool/spark,wzhfy/spark,wangmiao1981/spark,jiangxb1987/spark,ptkool/spark,dongjoon-hyun/spark,hvanhovell/spark,maropu/spark,holdenk/spark,HyukjinKwon/spark,rednaxelafx/apache-spark,nchammas/spark,ueshin/apache-spark,witgo/spark,vinodkc/spark,WeichenXu123/spark,HyukjinKwon/spark,shuangshuangwang/spark,wangyum/spark,HyukjinKwon/spark,wangmiao1981/spark,chuckchen/spark,wzhfy/spark,JoshRosen/spark,wangyum/spark,shaneknapp/spark,gengliangwang/spark,ueshin/apache-spark,wangmiao1981/spark,shaneknapp/spark,dongjoon-hyun/spark,zzcclp/spark,witgo/spark,WeichenXu123/spark,witgo/spark,zero323/spark,srowen/spark,xuanyuanking/spark,milliman/spark,wzhfy/spark,WeichenXu123/spark,vinodkc/spark,jiangxb1987/spark,apache/spark,chuckchen/spark,shuangshuangwang/spark,wangmiao1981/spark,cloud-fan/spark,zero323/spark,apache/spark,jiangxb1987/spark,wangmiao1981/spark,xuanyuanking/spark,vinodkc/spark,hvanhovell/spark,jiangxb1987/spark,maropu/spark,WeichenXu123/spark,dongjoon-hyun/spark,ptkool/spark,zero323/spark,maropu/spark