|
| 1 | +name: checkfast warm measure |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [checkfast/instant-measure] |
| 5 | +permissions: |
| 6 | + contents: read |
| 7 | +jobs: |
| 8 | + measure: |
| 9 | + name: warm check ${{ matrix.os }} |
| 10 | + runs-on: ${{ matrix.os }} |
| 11 | + timeout-minutes: 60 |
| 12 | + strategy: |
| 13 | + fail-fast: false |
| 14 | + matrix: |
| 15 | + os: [ubuntu-latest, macos-latest, windows-latest] |
| 16 | + env: |
| 17 | + HYPERFRAMES_NO_TELEMETRY: "1" |
| 18 | + DO_NOT_TRACK: "1" |
| 19 | + HYPERFRAMES_SKIP_SKILLS: "1" |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 |
| 22 | + with: |
| 23 | + lfs: true |
| 24 | + - name: Install FFmpeg (Windows) |
| 25 | + if: runner.os == 'Windows' |
| 26 | + uses: ./.github/actions/install-ffmpeg-windows |
| 27 | + - name: Set FFMPEG_BIN for bun install |
| 28 | + if: runner.os == 'Windows' |
| 29 | + shell: pwsh |
| 30 | + run: | |
| 31 | + $path = (Get-Command ffmpeg.exe).Source |
| 32 | + "FFMPEG_BIN=$path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append |
| 33 | + - name: Install FFmpeg (Linux) |
| 34 | + if: runner.os == 'Linux' |
| 35 | + run: sudo apt-get update -qq && sudo apt-get install -y -qq ffmpeg |
| 36 | + - name: Install FFmpeg (macOS) |
| 37 | + if: runner.os == 'macOS' |
| 38 | + run: brew install ffmpeg |
| 39 | + - uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 |
| 40 | + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 |
| 41 | + with: |
| 42 | + node-version: 24 |
| 43 | + - run: bun install --frozen-lockfile |
| 44 | + - name: Build |
| 45 | + shell: bash |
| 46 | + run: bun run build |
| 47 | + - name: Measure cold vs warm, then the warm process tests |
| 48 | + shell: bash |
| 49 | + run: bash .github/checkfast/measure.sh |
| 50 | + - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 |
| 51 | + if: always() |
| 52 | + with: |
| 53 | + name: checkfast-measure-${{ matrix.os }} |
| 54 | + path: checkfast-out |
0 commit comments