Skip to content

Commit bc576bf

Browse files
committed
[ci] Add process_artifacts_combined job
ghstack-source-id: 784640d Pull Request resolved: #30073
1 parent 3bc79cd commit bc576bf

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/runtime_build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,45 @@ jobs:
5252
name: build_${{ matrix.worker_id }}_${{ matrix.release_channel }}
5353
path: |
5454
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

0 commit comments

Comments
 (0)