[CI]Preserve `.ninja_log` for Mac builds (#78387)

And `compile_commands.json` which would be very useful for debug

Pull Request resolved: https://github.com/pytorch/pytorch/pull/78387
Approved by: https://github.com/suo
diff --git a/.github/workflows/_mac-build.yml b/.github/workflows/_mac-build.yml
index c5a93c7..03bf2a1 100644
--- a/.github/workflows/_mac-build.yml
+++ b/.github/workflows/_mac-build.yml
@@ -91,7 +91,7 @@
       - name: Archive artifacts into zip
         if: inputs.build-generates-artifacts
         run: |
-          zip -1 -r artifacts.zip dist/
+          zip -1 -r artifacts.zip dist/ build/.ninja_log build/compile_commands.json
 
       - name: Store PyTorch Build Artifacts on GHA
         uses: actions/upload-artifact@v2