@samitouri / QOS-React-2 / commits / bc576bfabe

[ci] Add process_artifacts_combined job

ghstack-source-id: 784640da83c93c49f1d924f8fcb848c7dc7d9e1c Pull Request resolved: https://github.com/facebook/react/pull/30073

Lauren Tan committed Jul 12, 2024 at 11:21 UTC bc576bfabec92438dddffe2db60e86d16268198d
1 file changed +42
.github/workflows/runtime_build.yml
+42
@@ -52,3 +52,45 @@ jobs:
52 name: build_${{ matrix.worker_id }}_${{ matrix.release_channel }}
53 path: |
54 build
55 +
56 + process_artifacts_combined:
57 + name: Process artifacts combined
58 + needs: build_and_lint
59 + runs-on: ubuntu-latest
60 + steps:
61 + - uses: actions/checkout@v4
62 + - uses: actions/setup-node@v4
63 + with:
64 + node-version: 18.20.1
65 + cache: yarn
66 + cache-dependency-path: yarn.lock
67 + - name: Restore cached node_modules
68 + uses: actions/cache@v4
69 + id: node_modules
70 + with:
71 + path: "**/node_modules"
72 + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
73 + - run: yarn install --frozen-lockfile
74 + - name: Restore archived build
75 + uses: actions/download-artifact@v4
76 + with:
77 + path: build
78 + merge-multiple: true
79 + - name: Display structure of build
80 + run: ls -R build
81 + - run: echo ${{ github.sha }} >> build/COMMIT_SHA
82 + - name: Scrape warning messages
83 + run: |
84 + mkdir -p ./build/__test_utils__
85 + node ./scripts/print-warnings/print-warnings.js > build/__test_utils__/ReactAllWarnings.js
86 + # Compress build directory into a single tarball for easy download
87 + - run: tar -zcvf ./build.tgz ./build
88 + # TODO: Migrate scripts to use `build` directory instead of `build2`
89 + - run: cp ./build.tgz ./build2.tgz
90 + - name: Archive build artifacts
91 + uses: actions/upload-artifact@v4
92 + with:
93 + name: combined_artifacts_${{ github.sha }}
94 + path: |
95 + ./build.tgz
96 + ./build2.tgz