Skip to content

Commit bf7aec8

Browse files
committed
[ci] Add process_artifacts_combined job
ghstack-source-id: 9bafffd0b2a200225d068148b1ccafa81070c051 Pull Request resolved: #30073
1 parent 9721967 commit bf7aec8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/runtime_build.yml

+40
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,43 @@ jobs:
4545
name: build_${{ matrix.worker_id }}_${{ matrix.release_channel }}
4646
path: |
4747
build
48+
49+
process_artifacts_combined:
50+
name: Process artifacts combined
51+
needs: build_and_lint
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- uses: actions/setup-node@v4
56+
with:
57+
node-version: 18.x
58+
cache: "yarn"
59+
cache-dependency-path: yarn.lock
60+
- name: Restore cached node_modules
61+
uses: actions/cache@v4
62+
id: node_modules
63+
with:
64+
path: "**/node_modules"
65+
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
66+
- run: yarn install --frozen-lockfile
67+
- name: Restore archived build
68+
uses: actions/download-artifact@v4
69+
with:
70+
path: build
71+
merge-multiple: true
72+
- run: echo ${{ github.sha }} >> build/COMMIT_SHA
73+
- name: Scrape warning messages
74+
run: |
75+
mkdir -p ./build/__test_utils__
76+
node ./scripts/print-warnings/print-warnings.js > build/__test_utils__/ReactAllWarnings.js
77+
# Compress build directory into a single tarball for easy download
78+
- run: tar -zcvf ./build.tgz ./build
79+
# TODO: Migrate scripts to use `build` directory instead of `build2`
80+
- run: cp ./build.tgz ./build2.tgz
81+
- name: Archive build artifacts
82+
uses: actions/upload-artifact@v4
83+
with:
84+
name: combined_artifacts_${{ github.sha }}
85+
path: |
86+
./build.tgz
87+
./build2.tgz

0 commit comments

Comments
 (0)