Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
poteto committed Jun 24, 2024
1 parent fa4be7d commit 490e1b8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/runtime_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ jobs:
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
- run: yarn install --frozen-lockfile
- run: yarn build --b=${{ matrix.bundle_type }} --r=${{ matrix.release_channel }} --ci=github
env:
CI: github
- name: Archive build
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -85,3 +87,27 @@ jobs:
name: ${{ matrix.bundle_type }}_${{ matrix.release_channel }}
- run: yarn install --frozen-lockfile
- run: yarn lint-build

process_artifacts_combined:
name: yarn lint-build
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Restore archived build
uses: actions/download-artifact@v4
with:
path: build
merge-multiple: true
- run: echo ${{ github.sha }} >> build/COMMIT_SHA
# Compress build directory into a single tarball for easy download
- run: tar -zcvf ./build.tgz ./build
# TODO: Migrate scripts to use `build` directory instead of `build2`
- run: cp ./build.tgz ./build2.tgz
- name: Archive build artifacts
uses: actions/upload-artifact@v4
with:
name: combined_artifacts_${{ github.sha }}
path: |
./build.tgz
./build2.tgz
2 changes: 1 addition & 1 deletion scripts/rollup/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const currentBuildResults = {
};

function saveResults() {
if (process.env.CIRCLE_NODE_TOTAL) {
if (process.env.CIRCLE_NODE_TOTAL || process.env.CI === 'github') {
// In CI, write the bundle sizes to a subdirectory and append the node index
// to the filename. A downstream job will consolidate these into a
// single file.
Expand Down

0 comments on commit 490e1b8

Please sign in to comment.