chore: prepare isolated workspace for PR 84 blocker regressions #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hermes blockers workspace | |
| on: | |
| push: | |
| branches: [codex/hermes-blockers-workspace] | |
| permissions: | |
| contents: read | |
| jobs: | |
| snapshot: | |
| runs-on: blacksmith-4vcpu-ubuntu-2404 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| ref: 5e1943d7e4c44d1d76fb032ddc5b2ddb951c965b | |
| persist-credentials: false | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24.x' | |
| - name: Archive pinned source and real Metro fixtures | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| root="$RUNNER_TEMP/hermes-blockers" | |
| mkdir -p "$root/source" "$root/benchmark" "$root/modern17" | |
| git archive HEAD | tar -x -C "$root/source" | |
| curl --fail --location --retry 2 https://codeload.github.com/sunnylqm/hbc-diff-benchmark/tar.gz/e6a870a1c26c4b64c7860d7e1aa575707d22ad88 | tar -xz --strip-components=1 -C "$root/benchmark" | |
| archive=$(npm pack hermes-compiler@250829098.0.17 --pack-destination "$RUNNER_TEMP" --silent) | |
| tar -xzf "$RUNNER_TEMP/$archive" --strip-components=1 -C "$root/modern17" package/package.json package/hermesc/linux64-bin/hermesc | |
| tar -czf "$RUNNER_TEMP/hermes-blockers.tgz" -C "$root" . | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: hermes-blockers | |
| path: ${{ runner.temp }}/hermes-blockers.tgz | |
| retention-days: 1 | |
| if-no-files-found: error |